8c2a95dbe2
* Mir starts up and is able to display system settings * x86_64 only for now, because at least ubuntu-app-test did not build on aarch64 Based on PureTryOut's work. Getting it to this stage was a huge effort (as it shows in the package count: 111(!)). See the merge request for details. [skip ci]: this won't finish in CI; ollieparanoid made sure that everything builds for x86_64.
60 lines
1.8 KiB
Text
60 lines
1.8 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
pkgbase=isodate
|
|
pkgname=py-isodate
|
|
pkgver=0.6.0
|
|
pkgrel=0
|
|
pkgdesc="An ISO 8601 date/time/duration parser and formatter"
|
|
arch=noarch
|
|
url="http://pypi.python.org/pypi/isodate"
|
|
license='BSD'
|
|
depends=""
|
|
makedepends="py-setuptools py3-setuptools"
|
|
provides="py2-isodate=$pkgver-r$pkgrel"
|
|
source="$pkgbase-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/$pkgbase/$pkgbase-$pkgver.tar.gz"
|
|
subpackages="py3-$pkgbase:_py3"
|
|
options="!check"
|
|
builddir="$srcdir/$pkgbase-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python setup.py build
|
|
python2 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
python2 setup.py test
|
|
python setup.py test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
|
find "$pkgdir/" -name '*.pyc' -delete
|
|
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
|
head -26 src/isodate/isodates.py > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
_py() {
|
|
pkgdesc="$pkgdesc (for python)"
|
|
depends="python2"
|
|
install_if="$pkgname=$pkgver-r$pkgrel python2"
|
|
|
|
cd "$builddir"
|
|
python2 setup.py install --root="$subpkgdir" --optimize=1
|
|
find "$subpkgdir/" -name '*.pyc' -delete
|
|
install -d "$subpkgdir"/usr/share/licenses/$pkgname
|
|
head -26 src/isodate/isodates.py > "$subpkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
_py3() {
|
|
depends="python3"
|
|
|
|
cd "$builddir"
|
|
python setup.py install --root="$subpkgdir" --optimize=1
|
|
find "$subpkgdir/" -name '*.pyc' -delete
|
|
install -d "$subpkgdir"/usr/share/licenses/$pkgname
|
|
head -26 src/isodate/isodates.py > "$subpkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
sha512sums="e977748e13ee2c94ab47bfc47113d152280e9acff6f70e773de73717392148dd2c111a7db2d9fa3679d37936c6ed9a23dc526cb00bd601df45459b6a244f9f7d isodate-0.6.0.tar.gz"
|