~alpine/aports

1

[alpine-aports] [PATCH 2/3] testing/py-pyqt5: new aport

Details
Message ID
<20180805173730.2890-2-sir@cmpwn.com>
Sender timestamp
1533490649
DKIM signature
missing
Download raw message
Patch: +91 -0
---
 testing/py-pyqt5/APKBUILD | 91 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 testing/py-pyqt5/APKBUILD

diff --git a/testing/py-pyqt5/APKBUILD b/testing/py-pyqt5/APKBUILD
new file mode 100644
index 0000000000..7c825acf37
--- /dev/null
+++ b/testing/py-pyqt5/APKBUILD
@@ -0,0 +1,91 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py-pyqt5
_pkgname=pyqt5
pkgver=5.9.2
pkgrel=0
pkgdesc="Python bindings for the Qt5 toolkit"
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
arch="noarch"
license="GPL-3.0-only"
depends="py-sip pyqt5-common"
makedepends="
	python2-dev python3-dev py-sip-dev py-opengl py-dbus qt5-qtconnectivity-dev
	qt5-qtmultimedia-dev qt5-qttools-dev qt5-qtserialport-dev qt5-qtsvg-dev
	qt5-qtwebengine-dev qt5-qtwebkit-dev qt5-qtwebsockets-dev
	qt5-qtx11extras-dev
"
subpackages="py2-${_pkgname}:_py2:all py3-${_pkgname}:_py3:all pyqt5-common:_common"
source="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt5_gpl-$pkgver.tar.gz"
builddir="$srcdir/PyQt5_gpl-$pkgver"
options="!check"

prepare() {
	default_prepare
	cp -r "$builddir" "$builddir"-py3
}

build() {
	cd "$builddir"
	python2 configure.py \
		--confirm-license \
		--no-sip-files \
		--qsci-api \
		--verbose \
		-q /usr/bin/qmake-qt5

	make

	cd "$builddir"-py3
	python3 configure.py \
		--confirm-license \
		--no-sip-files \
		--qsci-api \
		--verbose \
		-q /usr/bin/qmake-qt5

	make
}

package() {
	mkdir -p "$pkgdir"
}

_common() {
	pkgdesc="Common PyQt files shared between py2-pyqt5 and py3-pyqt5"
	depends="qt5-qtbase"

	cd "$builddir"
	install -Dm644 PyQt5.api "$subpkgdir"/usr/share/qt/qsci/api/python/PyQt5.api

	install -d "$subpkgdir"/usr/share/sip/PyQt5
	cp -a sip/* "$subpkgdir"/usr/share/sip/PyQt5
}

_py2() {
	cd "$builddir"
	_py
}

_py3() {
	cd "$builddir"-py3
	_py

	mv $subpkgdir/usr/bin/pyuic5 $subpkgdir/usr/bin/pyuic5-3
	mv $subpkgdir/usr/bin/pylupdate5 $subpkgdir/usr/bin/pylupdate5-3
	mv $subpkgdir/usr/bin/pyrcc5 $subpkgdir/usr/bin/pyrcc5-3
	rm \
		"$subpkgdir"/usr/lib/qt5/plugins/designer/libpyqt5.so \
		"$subpkgdir"/usr/lib/qt5/plugins/PyQt5/libpyqt5qmlplugin.so
}

_py() {
	local pyver="${subpkgname:2:1}"
	local python="python$pyver"
	pkgdesc="$pkgdesc (for $python)"
	depends="$python ${depends//py-/py$pyver-}"
	install_if="$pkgname=$pkgver-r$pkgrel $python"
	make DESTDIR="$subpkgdir" INSTALL_ROOT="$subpkgdir" install
	# provided via _common
	rm "$subpkgdir"/usr/share/qt5/qsci/api/python/PyQt5.api
}
sha512sums="5af2e65addaed7dd02d8dbf7a7c63767e565fc8edeb7b51e5991a00cda29f75b666529097646e821aaff556f350a929fd451f548bba76e97355b7fe10bd913bc  PyQt5_gpl-5.9.2.tar.gz"
-- 
2.18.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20180904104926.116185e2@ncopa-desktop.copa.dup.pw>
In-Reply-To
<20180805173730.2890-2-sir@cmpwn.com> (view parent)
Sender timestamp
1536050966
DKIM signature
missing
Download raw message

On Sun,  5 Aug 2018 13:37:29 -0400
Drew DeVault <sir@cmpwn.com> wrote:

> ---
>  testing/py-pyqt5/APKBUILD | 91 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 91 insertions(+)
>  create mode 100644 testing/py-pyqt5/APKBUILD
> 
> diff --git a/testing/py-pyqt5/APKBUILD b/testing/py-pyqt5/APKBUILD
> new file mode 100644
> index 0000000000..7c825acf37
> --- /dev/null
> +++ b/testing/py-pyqt5/APKBUILD
> @@ -0,0 +1,91 @@
> +# Maintainer: Drew DeVault <sir@cmpwn.com>
> +pkgname=py-pyqt5
> +_pkgname=pyqt5
> +pkgver=5.9.2
> +pkgrel=0
> +pkgdesc="Python bindings for the Qt5 toolkit"
> +url="http://riverbankcomputing.co.uk/software/pyqt/intro"

This looks like a duplicate of py3-qt5.
https://git.alpinelinux.org/cgit/aports/tree/community/py3-qt5/APKBUILD

-nc


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)