mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 17:01:34 +02:00
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py-sip
|
|
_pkgname=sip
|
|
pkgver=4.19.14
|
|
pkgrel=1
|
|
pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
|
|
url="http://www.riverbankcomputing.com/software/sip/"
|
|
arch="all"
|
|
license="custom:sip"
|
|
makedocdepends="py-sphinx"
|
|
makedepends="python2-dev python3-dev"
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-dev::noarch $pkgname-doc"
|
|
source="https://www.riverbankcomputing.com/static/Downloads/${_pkgname}/${_pkgname}-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp -r "$builddir" "$srcdir"/python2
|
|
cp -r "$builddir" "$srcdir"/python3
|
|
}
|
|
|
|
build() {
|
|
_build python2
|
|
_build python3
|
|
}
|
|
|
|
_build() {
|
|
local python="$1"
|
|
export PYTHON=$python
|
|
cd "$srcdir"/$python
|
|
$python configure.py --sip-module PyQt5.sip
|
|
make
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$srcdir/$python"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/${python}.* "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="afde261331f38eac863d8cea0e343649f460f0b9a603d7fe91f14583904ea4b488bbd88d20fad5c985c43c6c1683fffee38676d94831ac8f2de40d9ed4d0423e sip-4.19.14.tar.gz"
|