summaryrefslogtreecommitdiff
path: root/python2-sip/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python2-sip/PKGBUILD')
-rw-r--r--python2-sip/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/python2-sip/PKGBUILD b/python2-sip/PKGBUILD
new file mode 100644
index 000000000..b473cb2c1
--- /dev/null
+++ b/python2-sip/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
+# Contributor: riai <riai@bigfoot.com>, Ben <ben@benmazer.net>
+
+pkgname='python2-sip'
+pkgver=4.19.19
+pkgrel=3
+arch=('i686' 'pentium4' 'x86_64')
+url='https://www.riverbankcomputing.com/software/sip/intro'
+license=('custom:"sip"')
+makedepends=('python2')
+pkgdesc="Python 2.x SIP bindings for C and C++ libraries"
+depends=('python2')
+source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz")
+sha256sums=('5436b61a78f48c7e8078e93a6b59453ad33780f80c644e5f3af39f94be1ede44')
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd "$srcdir"/build
+ python2 ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
+ make
+}
+
+package() {
+ 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
+}