1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
5 # Contributor: riai <riai@bigfoot.com>, Ben <ben@benmazer.net>
8 pkgname=(sip4 python-sip4)
12 url='https://www.riverbankcomputing.com/software/sip/intro'
13 license=('custom:"sip"')
15 source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz")
16 sha256sums=('b39d93e937647807bac23579edbff25fe46d16213f708370072574ab1f1b4211')
24 python ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
29 pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
34 make DESTDIR="$pkgdir" install -C sipgen
35 # move sip.h to /usr/include
36 mv "$pkgdir"/usr/include/{python*/sip.h,}
37 rm -r "$pkgdir"/usr/include/python*
39 install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
42 package_python-sip4() {
43 pkgdesc="Python SIP4 bindings for C and C++ libraries"
49 make DESTDIR="$pkgdir" install
50 rm -r "$pkgdir"/usr/{bin,include} # conflicts with sip
52 install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE