# Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> setvar pkgname = 'py3-sip' setvar _pkgname = 'sip' setvar pkgver = '4.19.2' setvar pkgrel = '0' setvar pkgdesc = ""A tool that makes it easy to create Python bindings for C and C++ libraries. Python 3 package."" setvar url = ""http://www.riverbankcomputing.com/software/sip/"" setvar arch = ""all"" setvar license = ""custom:sip"" setvar makedepends = ""python3-dev"" setvar options = ""!check"" setvar replaces = ""py-sip"" setvar subpackages = ""$pkgname-dev"" setvar source = ""http://sourceforge.net/projects/pyqt/files/$_pkgname/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.gz"" setvar builddir = ""$srcdir"/$_pkgname-$pkgver" proc 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" } proc package { cd $builddir make DESTDIR="$pkgdir" install install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE } setvar sha512sums = ""6f14f387a899130cf15820d2b58d937d134a2eefd53c65a82af060e88a6ca039442b21f822880c4a3742d6f26328853a552239873c55d7b22de62a6cc5037b3e sip-4.19.2.tar.gz""