[arch-commits] Commit in isodate/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Tue Aug 7 01:55:22 UTC 2018
Date: Tuesday, August 7, 2018 @ 01:55:21
Author: eschwartz
Revision: 369973
upgpkg: isodate 0.6.0-3
FS#59545 fix makedepends/depends
do build in build()
don't remove the runtime bytecode cache
Modified:
isodate/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-06 23:09:47 UTC (rev 369972)
+++ PKGBUILD 2018-08-07 01:55:21 UTC (rev 369973)
@@ -4,20 +4,26 @@
pkgbase=isodate
pkgname=('python2-isodate' 'python-isodate')
pkgver=0.6.0
-pkgrel=2
+pkgrel=3
pkgdesc="An ISO 8601 date/time/duration parser and formatter"
arch=('any')
-url="http://pypi.python.org/pypi/isodate"
+url="https://github.com/gweis/isodate/"
license=('BSD')
-makedepends=('python2' 'python')
-checkdepends=('python2-setuptools' 'python-setuptools')
+makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz")
sha1sums=('2c69e08c9894a9cd96c627146463260f5731df62')
-build() {
+prepare() {
cp -r "$pkgbase-$pkgver" "$srcdir/python2"
}
+build() {
+ cd "$srcdir/python2"
+ python2 setup.py build
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py build
+}
+
check() {
cd "$srcdir/python2"
python2 setup.py test
@@ -26,22 +32,19 @@
}
package_python2-isodate() {
- depends=('python2')
+ depends=('python2-six')
cd "$srcdir/python2"
- python2 setup.py install --root="$pkgdir/" --optimize=0
- find "$pkgdir/" -name '*.pyc' -delete
+ python2 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"
}
package_python-isodate() {
- depends=('python')
+ depends=('python-six')
cd "$srcdir/$pkgbase-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=0
- find "$pkgdir/" -name '*.pyc' -delete
- find "$pkgdir/" -type d -empty -delete
+ 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"
}
More information about the arch-commits
mailing list