# Maintainer: Jesus E. pkgname=python-isodate pkgver=0.6.0 pkgrel=4 pkgdesc="An ISO 8601 date/time/duration parser and formatter" arch=('any') url="https://github.com/gweis/isodate/" license=('Modified-BSD') depends=('python-six') makedepends=('python-setuptools') source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz") sha512sums=('e977748e13ee2c94ab47bfc47113d152280e9acff6f70e773de73717392148dd2c111a7db2d9fa3679d37936c6ed9a23dc526cb00bd601df45459b6a244f9f7d') build() { cd "$srcdir/isodate-$pkgver" python setup.py build } check() { cd "$srcdir/isodate-$pkgver" python setup.py test } package_python-isodate() { cd "$srcdir/isodate-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 install -d "${pkgdir}/usr/share/licenses/${pkgname}" head -26 src/isodate/isodates.py > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }