mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03: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
31 lines
936 B
Text
31 lines
936 B
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-libnacl
|
|
pkgver=1.8.0
|
|
pkgrel=1
|
|
pkgdesc="Python bindings for libsodium/tweetnacl"
|
|
url="https://libnacl.readthedocs.org/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
makedepends="py3-setuptools libsodium-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mgorny/libnacl/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir"/libnacl-$pkgver
|
|
|
|
replaces="py-libnacl" # Backwards compatibility
|
|
provides="py-libnacl=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m unittest discover --start-directory tests -v
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
7a39d646083591782691c4d58fd4d743b385ee553bcc4c4741707a237fa3b1213629b5070390526175bdfe8436859aa7711779ff8b22a981227edb30b94e82d6 py3-libnacl-1.8.0.tar.gz
|
|
"
|