2013-04-01 23:36:38 +08:00
|
|
|
pkgbase=sip
|
2018-07-10 09:19:42 +08:00
|
|
|
pkgname=('python-sip-common' 'python2-sip' 'python3-sip' 'python3-sip-pyqt5' 'python2-sip-pyqt5')
|
|
|
|
pkgver=4.19.12
|
2018-07-10 09:38:17 +08:00
|
|
|
pkgrel=2
|
2012-11-08 03:34:31 +08:00
|
|
|
arch=('x86_64')
|
2018-07-10 09:19:42 +08:00
|
|
|
url="https://www.riverbankcomputing.com/software/sip/"
|
2010-03-14 23:48:48 +08:00
|
|
|
license=('custom:"sip"')
|
2013-09-22 20:47:59 +08:00
|
|
|
makedepends=('python2' 'python3')
|
2018-07-10 09:19:42 +08:00
|
|
|
source=("https://downloads.sourceforge.net/pyqt/${pkgbase}-${pkgver}.tar.gz")
|
|
|
|
md5sums=('e28b0790dfe4962ce6bbd7c4772f40c9')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build{,-py2,-pyqt5,-pyqt5-py2}
|
|
|
|
}
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
2018-07-10 09:19:42 +08:00
|
|
|
cd "$srcdir"/build
|
2018-07-10 09:37:05 +08:00
|
|
|
python3 ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
|
2018-07-10 09:19:42 +08:00
|
|
|
make
|
|
|
|
|
|
|
|
cd "$srcdir"/build-py2
|
|
|
|
python2 ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
|
|
|
|
make
|
|
|
|
|
|
|
|
cd "$srcdir"/build-pyqt5
|
2018-07-10 09:37:05 +08:00
|
|
|
python3 ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" --sip-module PyQt5.sip --no-tools
|
2018-07-10 09:19:42 +08:00
|
|
|
make
|
|
|
|
|
|
|
|
cd "$srcdir"/build-pyqt5-py2
|
|
|
|
python2 ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" --sip-module PyQt5.sip --no-tools
|
|
|
|
make
|
2010-04-07 03:23:26 +08:00
|
|
|
}
|
|
|
|
|
2013-10-05 22:19:19 +08:00
|
|
|
package_python-sip-common() {
|
2018-07-10 09:19:42 +08:00
|
|
|
pkgdesc="A tool for creating Python bindings for C and C++ libraries"
|
2013-09-24 05:16:24 +08:00
|
|
|
depends=('glibc')
|
2013-10-05 22:29:01 +08:00
|
|
|
conflicts=('sip-common' 'sip')
|
|
|
|
replaces=('sip-common' 'sip')
|
2018-07-10 09:19:42 +08:00
|
|
|
provides=('sip-common=${pkgver}' 'sip')
|
2013-09-22 20:47:59 +08:00
|
|
|
|
2018-07-10 09:19:42 +08:00
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install -C sipgen
|
|
|
|
install -Dm644 ../sip-$pkgver/siplib/sip.h -t "$pkgdir"/usr/include
|
|
|
|
|
|
|
|
install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2013-04-01 23:36:38 +08:00
|
|
|
}
|
|
|
|
|
2013-10-05 22:19:19 +08:00
|
|
|
package_python3-sip() {
|
2018-07-10 09:19:42 +08:00
|
|
|
pkgdesc="Python 3.x SIP bindings for C and C++ libraries"
|
|
|
|
depends=('python3' 'python-sip-common')
|
|
|
|
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -r "$pkgdir"/usr/{bin,include} # conflicts with sip
|
|
|
|
|
|
|
|
install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2013-04-01 23:36:38 +08:00
|
|
|
}
|
|
|
|
|
2013-10-05 22:19:19 +08:00
|
|
|
package_python2-sip() {
|
2018-07-10 09:19:42 +08:00
|
|
|
pkgdesc="Python 2.x SIP bindings for C and C++ libraries"
|
|
|
|
depends=('python2' 'python-sip-common')
|
|
|
|
|
|
|
|
cd build-py2
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -r "$pkgdir"/usr/{bin,include} # conflicts with sip
|
|
|
|
|
|
|
|
install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python3-sip-pyqt5() {
|
|
|
|
pkgdesc="Python 3.x SIP bindings for C and C++ libraries (PyQt5 version)"
|
|
|
|
depends=('python3' 'python-sip-common')
|
|
|
|
|
|
|
|
cd build-pyqt5
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python2-sip-pyqt5() {
|
|
|
|
pkgdesc="Python 2.x SIP bindings for C and C++ libraries (PyQt5 version)"
|
|
|
|
depends=('python2')
|
|
|
|
|
|
|
|
cd build-pyqt5-py2
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2010-12-16 07:03:21 +08:00
|
|
|
}
|