1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-defcon/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

37 lines
1,023 B
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-defcon
pkgver=0.10.2
pkgrel=1
pkgdesc="Flexible objects for represnting UFO data"
options="!check" # Requires unpackaged FontPens
url="https://github.com/robotools/defcon"
arch="noarch"
license="MIT"
depends="python3 py3-fonttools py3-fs py3-unicodedata2"
makedepends="
py3-gpep517
py3-installer
py3-setuptools
py3-setuptools_scm
py3-wheel
"
source="$pkgname-$pkgver.tar.gz::https://github.com/robotools/defcon/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/defcon-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
dist/defcon-*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/defcon/test
}
sha512sums="
fada72ff846d377e76e259255dbb6f3170c6e87c793f891bed2b5e827ae3001864872eda92a9bb031f32194a7b61089a29908e510f6a4dece8e94828f82e1798 py3-defcon-0.10.2.tar.gz
"