1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-simplegeneric/APKBUILD
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

31 lines
1 KiB
Text

# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-simplegeneric
pkgver=0.8.1
pkgrel=6
pkgdesc="Simple generic functions"
url="https://pypi.org/project/simplegeneric/"
arch="noarch"
license="ZPL-2.1"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-$pkgver.zip
remove-setup-warning.patch"
builddir="$srcdir/${pkgname#py3-}-$pkgver"
replaces="py-simplegeneric" # Backwards compatibility
provides="py-simplegeneric=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 simplegeneric.py
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="74c25d4e04fe197058cb43fabe3702cc5901989dc0b0bcf7511369f4f3d90fd98e4225174db0680c8f39389914f82824bdbdaf4c302b53998fbabbf0dba393e4 simplegeneric-0.8.1.zip
8558e711659fc2bc76cf8a770a0950778fa7d0b11165fdca0ac444575de3efdd3ae5bdc37351ce532b6d9245eee9e06fe8c614e23f3db709e5a53debe424e4fd remove-setup-warning.patch"