psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

35 lines
845 B
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-convertdate
pkgver=2.4.0
pkgrel=1
pkgdesc="Converts between Gregorian dates and other calendar systems"
url="https://github.com/fitnr/convertdate"
arch="noarch"
license="MIT"
depends="
py3-pymeeus
py3-tz
python3
"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/fitnr/convertdate/archive/v$pkgver/convertdate-v$pkgver.tar.gz"
builddir="$srcdir/convertdate-$pkgver"
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/build/lib" pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
d6b63000fd72640d69afa12b5f942684fa1c2f52880bc76e78780f144848040176a7869cd7b95a502abfd5b8fe1ebc3c844f3eb261e2ad547e6be493b11cd432 convertdate-v2.4.0.tar.gz
"