From 2c632f843d3a08801aa7d541f2be9b2b31637acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 9 Aug 2020 16:23:12 +0700 Subject: [PATCH] python3-sip-PyQt5: update to 12.8.0 --- srcpkgs/python3-sip-PyQt5 | 1 - srcpkgs/python3-sip-PyQt5/template | 19 +++++++++++++++++++ srcpkgs/sip/template | 17 +---------------- 3 files changed, 20 insertions(+), 17 deletions(-) delete mode 120000 srcpkgs/python3-sip-PyQt5 create mode 100644 srcpkgs/python3-sip-PyQt5/template diff --git a/srcpkgs/python3-sip-PyQt5 b/srcpkgs/python3-sip-PyQt5 deleted file mode 120000 index 633f7c0bcc..0000000000 --- a/srcpkgs/python3-sip-PyQt5 +++ /dev/null @@ -1 +0,0 @@ -sip \ No newline at end of file diff --git a/srcpkgs/python3-sip-PyQt5/template b/srcpkgs/python3-sip-PyQt5/template new file mode 100644 index 0000000000..8d89681539 --- /dev/null +++ b/srcpkgs/python3-sip-PyQt5/template @@ -0,0 +1,19 @@ +# Template file for 'python3-sip-PyQt5' +pkgname=python3-sip-PyQt5 +version=12.8.0 +revision=1 +wrksrc="PyQt5_sip-$version" +build_style=python3-module +hostmakedepends="python3-devel python3-setuptools sip5" +makedepends="python3-devel" +short_desc="Python 3 PyQt5 SIP bindings with C and C++" +maintainer="Orphaned " +license="GPL-2.0-only, GPL-3.0-only, custom:SIP" +homepage="https://riverbankcomputing.com/software/sip/intro" +distfiles="${PYPI_SITE}/P/PyQt5_sip/PyQt5_sip-${version}.tar.gz" +checksum=0a34b6596bdd28d52da3a51fa8d9bb0b287bcb605c2512aa3251b9028cc71f4d +lib32disabled=yes + +post_install() { + vlicense /usr/share/licenses/sip5/LICENSE +} diff --git a/srcpkgs/sip/template b/srcpkgs/sip/template index aaf8132a67..a197f8c5d5 100644 --- a/srcpkgs/sip/template +++ b/srcpkgs/sip/template @@ -15,12 +15,11 @@ checksum=22ca9bcec5388114e40d4aafd7ccd0c4fe072297b628d0c5cdfa2f010c0bc7e7 post_extract() { mv sip-$version sip-${py2_ver} cp -a sip-${py2_ver} sip-${py3_ver} - cp -a sip-${py2_ver} sip-${py3_ver}-PyQt5 cp -a sip-${py2_ver} sip-${py2_ver}-PyQt5 } do_build() { - for pyver in $py2_ver $py3_ver ${py3_ver}-PyQt5 ${py2_ver}-PyQt5; do + for pyver in $py2_ver $py3_ver ${py2_ver}-PyQt5; do if [ "${pyver%-PyQt5}" != "$py2_ver" ]; then pyinc="$py3_inc" else @@ -54,10 +53,6 @@ do_install() { vinstall sipconfig.py 644 $py3_sitelib vinstall sipdistutils.py 644 $py3_sitelib - # install python3 PyQt5 sip - cd ${wrksrc}/sip-${py3_ver}-PyQt5 - make DESTDIR=${DESTDIR} install -C siplib - # install python2 PyQt5 sip cd ${wrksrc}/sip-${py2_ver}-PyQt5 make DESTDIR=${DESTDIR} install -C siplib @@ -108,16 +103,6 @@ python3-sip-devel_package() { } } -python3-sip-PyQt5_package() { - lib32disabled=yes - depends="${sourcepkg}-${version}_${revision} python3" - short_desc="Python3 SIP bindings (PyQt5 version)" - pkg_install() { - vmove ${py3_sitelib}/PyQt5/sip.so - vmove ${py3_sitelib}/PyQt5/sip.pyi - } -} - python-sip-PyQt5_package() { lib32disabled=yes depends="python"