diff --git a/srcpkgs/python3-PyQt5-networkauth-devel b/srcpkgs/python3-PyQt5-networkauth-devel new file mode 120000 index 0000000000..1dd296bda7 --- /dev/null +++ b/srcpkgs/python3-PyQt5-networkauth-devel @@ -0,0 +1 @@ +python3-PyQt5-networkauth \ No newline at end of file diff --git a/srcpkgs/python3-PyQt5-networkauth/template b/srcpkgs/python3-PyQt5-networkauth/template new file mode 100644 index 0000000000..b0768fc041 --- /dev/null +++ b/srcpkgs/python3-PyQt5-networkauth/template @@ -0,0 +1,47 @@ +# Template file for 'python3-PyQt5-networkauth' +pkgname=python3-PyQt5-networkauth +version=5.15.3 +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 " +license="GPL-3.0-only" +homepage="https://www.riverbankcomputing.com/software/pyqtnetworkauth/" +distfiles="${PYPI_SITE}/P/PyQtNetworkAuth/PyQtNetworkAuth-${version}.tar.gz" +checksum=2590eae76d4b87ceb9f0d857a5631e13dd14f7fdab2b5e696df61f77e4e3fd82 +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 + } +}