# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-sip _pkgname=sip pkgver=4.19.2 pkgrel=0 pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries. Python 3 package." url="http://www.riverbankcomputing.com/software/sip/" arch="all" license="custom:sip" makedepends="python3-dev" options="!check" replaces="py-sip" subpackages="$pkgname-dev" source="http://sourceforge.net/projects/pyqt/files/$_pkgname/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in) python3 configure.py make CC="${CC:-gcc}" \ CXX="${CXX:-g++}" \ CFLAGS="$CFLAGS -fPIC" \ CXXFLAGS="$CXXFLAGS" } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE } sha512sums="6f14f387a899130cf15820d2b58d937d134a2eefd53c65a82af060e88a6ca039442b21f822880c4a3742d6f26328853a552239873c55d7b22de62a6cc5037b3e sip-4.19.2.tar.gz"