# Maintainer: Erich Eckner # Contributor: Felix Yan # Contributor: Andrea Scarpino # Contributor: Douglas Soares de Andrade # Contributor: riai , Ben pkgname='python2-sip' pkgver=4.19.21 pkgrel=1 arch=('i686' 'pentium4' 'x86_64') url='https://www.riverbankcomputing.com/software/sip/intro' license=('custom:"sip"') pkgdesc="Python 2.x SIP bindings for C and C++ libraries" source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz") sha512sums=('441e1fe6b3eb6820638f9b4436e820da39b72dd70b402afa5237979ac671978c081d92e1e78920bb754bbc66b159bad08edb3bbb497b7e72dee6ff1d69cd1b60') 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 }