mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 17:01:34 +01:00
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
35 lines
845 B
Plaintext
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
|
|
"
|