OCaml 4.13.1 rebuild
[arch-packages.git] / sip4 / trunk / PKGBUILD
blob015f54b28c63599ccbfcb8700a0d5cc077e8211d
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>
7 pkgbase=sip4
8 pkgname=(sip4 python-sip4)
9 pkgver=4.19.25
10 pkgrel=3
11 arch=(x86_64)
12 url='https://www.riverbankcomputing.com/software/sip/intro'
13 license=('custom:"sip"')
14 makedepends=(python)
15 source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz")
16 sha256sums=('b39d93e937647807bac23579edbff25fe46d16213f708370072574ab1f1b4211')
18 prepare() {
19   mkdir -p build
22 build() {
23   cd build
24   python ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
25   make
28 package_sip4() {
29   pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
30   depends=(glibc)
31   replaces=('sip<5')
33   cd build
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"
44   depends=(python)
45   provides=(python-sip)
46   replaces=(python-sip)
48   cd build
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