pydateutil

This commit is contained in:
milisbir 2018-01-26 06:04:35 +02:00
parent a738270d0d
commit 9a6401ad32
2 changed files with 25 additions and 21 deletions

View File

@ -0,0 +1,25 @@
# Tanım: Standart datetime modülüne güçlü eklentiler sağlar
# URL: https://github.com/dateutil/dateutil
# Paketçi: Cihan_Alkan
# Gerekler: python python3 python-setuptools python3-setuptools python-six python3-six
# Grup: kütüphane
isim=pydateutil
surum=2.6.1
devir=1
kaynak=(https://github.com/dateutil/dateutil/archive/$surum.tar.gz::$isim-$surum.tar.gz)
derle() {
cp -a dateutil-$surum{,-py3}
cd "$SRC"/dateutil-$surum
python2 setup.py build
python2 setup.py install --root="$PKG" --optimize=1 --skip-build
cd "$SRC"/dateutil-$surum-py3
python3 setup.py build
python3 setup.py install --root="$PKG" --optimize=1 --skip-build
install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE"
}

View File

@ -1,21 +0,0 @@
# Tanım: Standart datetime modülüne güçlü uzantılar sağlar.
# URL: http://labix.org/python-dateutil
# Paketçi: milisarge
# Gerekler: python-six python-setuptools
isim=python-dateutil
surum=2.2
devir=1
kaynak=(
http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-$surum.tar.gz)
derle() {
cd $isim-$surum
python2 setup.py install --prefix=/usr --root=$PKG
# Düzeltmeler
chmod -R a+r $PKG/usr/lib/python2.7/
rm $PKG/usr/lib/python2.7/site-packages/dateutil/zoneinfo/zoneinfo--latest.tar.gz
# Kontrol
python2 test.py
}