desktop/python-dateutil/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

41 lines
1.1 KiB
Bash

pkgbase=python3-dateutil
pkgname=('python3-dateutil' 'python2-dateutil')
pkgver=2.5.0
pkgrel=2
pkgdesc="Provides powerful extensions to the standard datetime module"
arch=('any')
license=('custom')
url="https://github.com/dateutil/dateutil"
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six')
source=("$pkgbase-$pkgver.tar.gz"::https://github.com/dateutil/dateutil/archive/$pkgver.tar.gz)
sha1sums=('55adcc447e882d9a4f951667e77fdb2c03b3501e')
build() {
cd $srcdir
cp -r dateutil-$pkgver python2-dateutil-$pkgver
}
package_python3-dateutil() {
depends=('python3-six')
cd dateutil-$pkgver
python3 setup.py install --root=$pkgdir --optimize=1
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
package_python2-dateutil() {
depends=('python2-six')
cd $srcdir/python2-dateutil-$pkgver
python2 setup.py install --root=$pkgdir --optimize=1
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
check() {
cd dateutil-$pkgver
python3 updatezinfo.py
python3 setup.py test
cd $srcdir/python2-dateutil-$pkgver
python2 updatezinfo.py
python2 setup.py test
}