mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 16:46:46 +02:00
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
maintainer="omni <omni+alpine@hack.org>"
|
|
pkgname=highctidh
|
|
pkgver=1.0.2024092800
|
|
pkgrel=0
|
|
pkgdesc="high-ctidh fork as a portable shared library"
|
|
url="https://codeberg.org/vula/highctidh"
|
|
arch="all !armhf !armv7 !x86" # 32bit architectures fail to build
|
|
license="LicenseRef-PD-2"
|
|
makedepends="clang py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-dev py3-$pkgname-pyc py3-$pkgname:py3"
|
|
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/vula/highctidh/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname/src"
|
|
|
|
build() {
|
|
export CC=clang
|
|
make
|
|
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
# TODO: run c library tests
|
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir"/usr make install
|
|
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
py3() {
|
|
pkgdesc="$pkgdesc Python bindings"
|
|
|
|
local pyver="$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
|
|
amove usr/lib/python"$pyver"
|
|
}
|
|
|
|
sha512sums="
|
|
afba729b22c672e36283a8660a662adca371425834fe6080e221af81b0d775fe7e9a06a5c8213f4aa7c87c3de88621ecc128d87f3460bc828ae46a357ed6e64e highctidh-1.0.2024092800.tar.gz
|
|
"
|