mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
community/py-sip: fixed the build for PyQT5.sip and sip binary
This commit is contained in:
parent
4f94de8920
commit
dee82aa931
@ -3,13 +3,14 @@
|
||||
pkgname=py-sip
|
||||
_pkgname=sip
|
||||
pkgver=4.19.14
|
||||
pkgrel=0
|
||||
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"
|
||||
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
|
||||
|
||||
@ -28,20 +29,16 @@ _build() {
|
||||
local python="$1"
|
||||
export PYTHON=$python
|
||||
cd "$srcdir"/$python
|
||||
local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in)
|
||||
$python configure.py
|
||||
make CC="${CC:-gcc}" \
|
||||
CXX="${CXX:-g++}" \
|
||||
CFLAGS="$CFLAGS -fPIC" \
|
||||
CXXFLAGS="$CXXFLAGS"
|
||||
$python configure.py --sip-module PyQt5.sip
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
_py2() {
|
||||
replaces="$pkgname"
|
||||
replaces="$pkgname"
|
||||
_py python2
|
||||
}
|
||||
|
||||
@ -53,12 +50,12 @@ _py() {
|
||||
local python="$1"
|
||||
pkgdesc="$pkgdesc (for $python)"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
||||
|
||||
cd "$srcdir/$python"
|
||||
make DESTDIR="$pkgdir" install
|
||||
chmod +x "$pkgdir"/usr/bin/sip
|
||||
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
|
||||
mkdir -p "$subpkgdir"/usr/lib
|
||||
mv "$pkgdir"/usr/lib/${python}.* "$subpkgdir"/usr/lib/
|
||||
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
|
||||
}
|
||||
|
||||
sha512sums="afde261331f38eac863d8cea0e343649f460f0b9a603d7fe91f14583904ea4b488bbd88d20fad5c985c43c6c1683fffee38676d94831ac8f2de40d9ed4d0423e sip-4.19.14.tar.gz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user