Date: Wednesday, April 6, 2016 @ 21:30:15 Author: jelle Revision: 169597
archrelease: copy trunk to community-any Added: python-dateutil/repos/community-any/PKGBUILD (from rev 169596, python-dateutil/trunk/PKGBUILD) Deleted: python-dateutil/repos/community-any/PKGBUILD ----------+ PKGBUILD | 97 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 51 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-04-06 19:30:07 UTC (rev 169596) +++ PKGBUILD 2016-04-06 19:30:15 UTC (rev 169597) @@ -1,46 +0,0 @@ -#/Maintainer: Jelle van der Waa <je...@vdwaa.nl> -#Contributor: lilydjwg <lilyd...@gmail.com> - -pkgbase=python-dateutil -pkgname=('python-dateutil' 'python2-dateutil') -pkgver=2.5.2 -pkgrel=1 -pkgdesc="Provides powerful extensions to the standard datetime module" -arch=('any') -license=('custom') -url="https://github.com/dateutil/dateutil" -makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six') -source=("$pkgbase-$pkgver.tar.gz"::"https://github.com/dateutil/dateutil/archive/$pkgver.tar.gz") -md5sums=('51258d248d99171d2ca40c538ebf3469') - -build() { - - cd $srcdir - cp -r dateutil-$pkgver python2-dateutil-$pkgver -} - -package_python-dateutil() -{ -depends=('python-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 -} Copied: python-dateutil/repos/community-any/PKGBUILD (from rev 169596, python-dateutil/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-04-06 19:30:15 UTC (rev 169597) @@ -0,0 +1,51 @@ +#/Maintainer: Jelle van der Waa <je...@vdwaa.nl> +#Contributor: lilydjwg <lilyd...@gmail.com> + +pkgbase=python-dateutil +pkgname=('python-dateutil' 'python2-dateutil') +pkgver=2.5.2 +pkgrel=2 +pkgdesc="Provides powerful extensions to the standard datetime module" +arch=('any') +license=('custom') +url="https://github.com/dateutil/dateutil" +makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six') +source=("$pkgbase-$pkgver.tar.gz"::"https://github.com/dateutil/dateutil/archive/$pkgver.tar.gz" "unambigious_dates.patch::https://github.com/dateutil/dateutil/commit/604282fdf1b23534d3afa93b0230ea9ece79f65d.patch") +md5sums=('51258d248d99171d2ca40c538ebf3469' + 'd7039d81bbf6b31d0e6adcfaf54499a8') + +prepare() { + cd dateutil-$pkgver + patch -Np1 -i $srcdir/unambigious_dates.patch +} + +build() { + cd $srcdir + cp -r dateutil-$pkgver python2-dateutil-$pkgver +} + +package_python-dateutil() +{ +depends=('python-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 +}