blob: d3f79463cceaafb3181d16e5260a4e15c81e3cee (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-sip
_pkgname=sip
pkgver=4.19.19
pkgrel=1
pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
options="!check" # No testsuite
url="http://www.riverbankcomputing.com/software/sip/"
arch="all"
license="custom:sip"
makedepends="python3-dev"
subpackages="
$pkgname-pyqt5
$pkgname-dev::noarch
$pkgname-doc"
source="https://www.riverbankcomputing.com/static/Downloads/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-sip" # Backwards comptibility
provides="py-sip=$pkgver-r$pkgrel" # Backwards comptibility
prepare() {
default_prepare
mkdir -p "$srcdir"/python3-sip
mkdir -p "$srcdir"/python3-PyQt5.sip
}
build() {
cd "$srcdir"/python3-sip
python3 "$builddir"/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
cd "$srcdir"/python3-PyQt5.sip
python3 "$builddir"/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" --sip-module PyQt5.sip --no-tools
}
package() {
cd "$srcdir"/python3-sip
make DESTDIR="$pkgdir" install
# Move sip.h to /usr/include
mv "$pkgdir"/usr/include/python3*/sip.h "$pkgdir"/usr/include/sip.h
rm -rf "$pkgdir"/usr/include/python3*
install -Dm644 "$builddir"/LICENSE "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE
}
pyqt5() {
pkgdesc="Python3 SIP bindings for C and C++ libraries"
replaces="" # Reset
provides="" # Reset
cd "$srcdir"/python3-PyQt5.sip
make DESTDIR="$subpkgdir" install
}
dev() {
replaces="py-sip-dev" # Backwards compatibility
provides="py-sip-dev=$pkgver-r$pkgrel" # Backwards compatibility
depends_dev="py3-sip" # Depend on the package that provides the sip binary
default_dev
}
sha512sums="396c625f59ccef67c2e94221b26dd4ed5d536652a9b63a9f23b340ddf16adf34c6bdb0fbd7c0c1cc403e1d59e8ebf716b478a24bade66a2703fcc5f00b62533d sip-4.19.19.tar.gz"
|