diff options
author | Stephan Springer | 2019-04-12 11:42:49 +0200 |
---|---|---|
committer | Stephan Springer | 2019-04-12 11:42:49 +0200 |
commit | 7d6401e7b266609a768d7fb2e284cb696cb9849c (patch) | |
tree | f3376415869a86199e262db5c7f5e0382ae72a04 | |
parent | 9fc2c19782cdc9e332e93a9c5a42001e69de44e1 (diff) | |
download | aur-7d6401e7b266609a768d7fb2e284cb696cb9849c.tar.gz |
merge python-sip-pyqt4 and python2-sip-pyqt4
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 28 insertions, 7 deletions
@@ -1,5 +1,3 @@ -# Generated by mksrcinfo v8 -# Thu Apr 11 18:29:25 UTC 2019 pkgbase = python-sip-pyqt4 pkgver = 4.19.16 pkgrel = 1 @@ -7,6 +5,7 @@ pkgbase = python-sip-pyqt4 arch = x86_64 license = custom:"sip" makedepends = python + makedepends = python2 source = https://www.riverbankcomputing.com/static/Downloads/sip/4.19.16/sip-4.19.16.tar.gz sha256sums = 184c790d58e9527fc6bdac2bbf8638f3d1b41dea922cad8eb83172b4ba70c620 @@ -14,3 +13,7 @@ pkgname = python-sip-pyqt4 pkgdesc = Python 3.x SIP bindings for C and C++ libraries (PyQt4 version) depends = python +pkgname = python2-sip-pyqt4 + pkgdesc = Python 2.x SIP bindings for C and C++ libraries (PyQt4 version) + depends = python2 + @@ -1,25 +1,33 @@ -# Contributor inemum (https://gitlab.com/inemum) -# Maintainer graysky <graysky AT archlinux DOT us> +# Maintainer: Stephan Springer <buzo+arch@Lini.de> +# Contributor: inemum (https://gitlab.com/inemum) +# Contributor: graysky <graysky AT archlinux DOT us> +# Contributor: Fredrick Brennan <copypaste@kittens.ph> + # based on https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/sip -pkgname=('python-sip-pyqt4') +pkgbase=('python-sip-pyqt4') +pkgname=('python-sip-pyqt4' 'python2-sip-pyqt4') pkgver=4.19.16 pkgrel=1 arch=('x86_64') url='http://www.riverbankcomputing.com/software/sip/intro' license=('custom:"sip"') -makedepends=('python') +makedepends=('python' 'python2') source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz") sha256sums=('184c790d58e9527fc6bdac2bbf8638f3d1b41dea922cad8eb83172b4ba70c620') prepare() { - mkdir -p build-pyqt4 + mkdir -p build-pyqt4{,-py2} } build() { cd "$srcdir"/build-pyqt4 python ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" --sip-module PyQt4.sip --no-tools make + + cd "$srcdir"/build-pyqt4-py2 + python2 ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" --sip-module PyQt4.sip --no-tools + make } package_python-sip-pyqt4() { @@ -31,3 +39,13 @@ package_python-sip-pyqt4() { install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } + +package_python2-sip-pyqt4() { + pkgdesc="Python 2.x SIP bindings for C and C++ libraries (PyQt4 version)" + depends=('python2') + + cd build-pyqt4-py2 + make DESTDIR="$pkgdir" install + + install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |