blob: c64ca778218e77e805cec9b5ea0d36b7a6903d55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-pyclipper
_pyname=pyclipper
pkgver=1.1.0
# Upstream has a custom versioning scheme. Requested adopting semver.org:
# https://github.com/fonttools/pyclipper/issues/26
_pkgpostver="$pkgver.post3"
pkgrel=1
pkgdesc="Cython wrapper for clipper"
url="https://github.com/fonttools/pyclipper"
arch="all"
license="MIT"
depends="python3"
makedepends="py3-setuptools python3-dev cython clipper-dev"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/$_pyname/$_pyname-$_pkgpostver.zip
10-system-libs.patch
disable-broken-test.patch
"
builddir="$srcdir/$_pyname-$_pkgpostver"
case "$CARCH" in
mips*) options="!check";;
esac
prepare() {
default_prepare
# For system-wide consistency, and to save installation space,
# we use the shared library from Alpine package "clipper".
rm pyclipper/clipper.cpp pyclipper/clipper.hpp
}
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="303be17e498f1d9fc5cdd0ce7c3e4c92c5d6dae7c7be7003402baa8403ec06951ec4805401748689e429118484cebaa6a762b8c2f4fc6ec801b4fd4a891131d9 pyclipper-1.1.0.post3.zip
855d20489b4f7d90242ac2cb81b00b555d11925bf7c87d523a03ca3807fb1902d67a71645f7bc37f1997fd8bf779af06cb164f6de3a221149df7b69d4c2a283b 10-system-libs.patch
06ced9f3410f436986109a7f0d54ccdd69597e75fb44c26d9dd1909b59a1a987f07ad55d2a0e24d114f2af31b3aa51cd6f44d7fe1658a625ac53e33bef379d8a disable-broken-test.patch"
|