void-packages/srcpkgs/python3-PyQt5-networkauth/template
2021-04-18 11:15:35 +07:00

48 lines
1.4 KiB
Bash

# Template file for 'python3-PyQt5-networkauth'
pkgname=python3-PyQt5-networkauth
version=5.15.4
revision=1
wrksrc=PyQtNetworkAuth-$version
build_helper="qmake"
hostmakedepends="qt5-qmake python3-PyQt5-devel pkg-config sip
python3-PyQt-builder"
makedepends="python3-devel python3-PyQt5-devel qt5-networkauth-devel"
depends="python3-PyQt5>=$version"
short_desc="Python bindings for the Qt5 Network Authorization library"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-3.0-only"
homepage="https://www.riverbankcomputing.com/software/pyqtnetworkauth/"
distfiles="${PYPI_SITE}/P/PyQtNetworkAuth/PyQtNetworkAuth-${version}.tar.gz"
checksum=893b9f8afb26a64757e9fa3436261b8bfcb4e696efc2a364a9dc8ac44db67fa7
lib32disabled=yes
CFLAGS=-I$XBPS_CROSS_BASE/usr/include/python$py3_ver
CXXFLAGS="$CFLAGS"
do_configure() {
mkdir -p build
sip-build --no-make \
--api-dir /usr/share/qt5/qsci/api/python \
--build-dir build
if [ "$CROSS_BUILD" ]; then
# -I/usr/include/python$py3_ver is set by sip-build :(
find build -name Makefile |
xargs sed -i "s,-I\\(/usr/include\\),-I$XBPS_CROSS_BASE\\1,g"
fi
}
do_build() {
make -C build ${makejobs}
}
do_install() {
make -C build DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
}
python3-PyQt5-networkauth-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove ${py3_sitelib}/PyQt5/bindings
}
}