void-packages/srcpkgs/sip/template
2020-10-01 22:35:07 +07:00

49 lines
1.4 KiB
Bash

# Template file for 'sip'
pkgname=sip
version=4.19.24
revision=2
hostmakedepends="python3-devel"
makedepends="${hostmakedepends}"
short_desc="Python extension module generator for C/C++ libraries"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, GPL-3.0-only, custom:SIP"
homepage="https://riverbankcomputing.com/software/sip/intro"
distfiles="https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz"
checksum=edcd3790bb01938191eef0f6117de0bf56d1136626c0ddb678f3a558d62e41e5
do_build() {
python3 configure.py \
CC="${CC}" CFLAGS="${CFLAGS}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
LINK="${CXX}" LINK_SHLIB="${CXX}" LFLAGS="${LDFLAGS}" STRIP="" \
INCDIR="${XBPS_CROSS_BASE}/${py3_inc}" ${pyqt5}
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install -C sipgen
make DESTDIR=${DESTDIR} install -C siplib
vinstall sipconfig.py 644 $py3_sitelib
vinstall sipdistutils.py 644 $py3_sitelib
vlicense LICENSE
}
python3-sip_package() {
lib32disabled=yes
depends="python3"
short_desc="Python3 SIP bindings"
pkg_install() {
vmove ${py3_sitelib}/sip.so
vmove ${py3_sitelib}/sipconfig.py
vmove ${py3_sitelib}/sip.pyi
vlicense LICENSE
}
}
python3-sip-devel_package() {
depends="python3-sip-${version}_${revision} sip-${version}_${revision}"
short_desc="Python3 SIP bindings - development files"
pkg_install() {
vmove ${py3_inc}
vmove ${py3_sitelib}/sipdistutils.py
}
}