summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz2018-03-22 10:36:03 +0100
committerFlorian Pritz2018-03-22 10:36:03 +0100
commita77367e5734698b204246a25b51b372e622a86d2 (patch)
tree8fcbf05f0fe4120b28f521b94d2cbb82fe3dfdfd
downloadaur-a77367e5734698b204246a25b51b372e622a86d2.tar.gz
initial commit
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD88
2 files changed, 121 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0c0824478eb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+# Generated by mksrcinfo v8
+# Thu Mar 22 09:35:52 UTC 2018
+pkgbase = python-pyside-tools
+ pkgver = 0.2.15
+ pkgrel = 2
+ url = https://qt-project.org/wiki/PySide
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = cmake
+ makedepends = python
+ makedepends = python2
+ makedepends = qt4>=4.5
+ makedepends = shiboken>=1.1.1
+ makedepends = python-pyside
+ makedepends = python2-pyside
+ source = python-pyside-tools-0.2.15.tar.gz::https://github.com/PySide/Tools/archive/0.2.15.tar.gz
+ md5sums = e542b9536bd9d35599ede225c9311cc8
+
+pkgname = python2-pyside-tools
+ pkgdesc = PySide lupdate, rcc, and uic development tools (for Python 2)
+ depends = python2-pyside
+ depends = pyside-tools-common
+
+pkgname = python-pyside-tools
+ pkgdesc = PySide lupdate, rcc, and uic development tools (for Python 3)
+ depends = python-pyside
+ depends = pyside-tools-common
+
+pkgname = pyside-tools-common
+ pkgdesc = PySide lupdate, rcc, and uic development tools (Common Files)
+ depends = qt4>=4.5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..660a03ffc4c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,88 @@
+# Maintainer: Florian Pritz <bluewind@xinu.at>
+# Contributor: kachelaqa <kachelaqa at gmail dot com>
+
+pkgbase='python-pyside-tools'
+pkgname=('python2-pyside-tools' 'python-pyside-tools' 'pyside-tools-common')
+pkgver=0.2.15
+pkgrel=2
+arch=('i686' 'x86_64')
+license=('LGPL')
+url='https://qt-project.org/wiki/PySide'
+makedepends=('cmake' 'python' 'python2' 'qt4>=4.5' 'shiboken>=1.1.1' python{,2}-pyside)
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/PySide/Tools/archive/${pkgver}.tar.gz")
+md5sums=('e542b9536bd9d35599ede225c9311cc8')
+
+build() {
+ cd "${srcdir}/Tools-${pkgver}"
+
+ mkdir -p build2 && cd build2
+ # both PYTHON_SUFFIX & PYTHON_BASENAME are required to
+ # ensure PySideConfig-python2.7.cmake is selected
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DPYTHON_SUFFIX=-python2.7 \
+ -DPYTHON_BASENAME=-python2.7 \
+ -DQT_QMAKE_EXECUTABLE=qmake-qt4
+ make
+
+ cd "${srcdir}/Tools-${pkgver}"
+
+ mkdir -p build3 && cd build3
+ # PySideConfig.cmake defaults to Python 3 config
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DQT_QMAKE_EXECUTABLE=qmake-qt4
+ make
+}
+
+package_python2-pyside-tools() {
+ depends=('python2-pyside' 'pyside-tools-common')
+ pkgdesc='PySide lupdate, rcc, and uic development tools (for Python 2)'
+
+ cd "${srcdir}/Tools-${pkgver}/build2"
+ make DESTDIR="${pkgdir}" install
+
+ find "${pkgdir}" -type f -exec \
+ sed -i -e '1 s|^#! */usr/bin/python[0-9.]*|#!/usr/bin/python2|' \
+ -e '1 s|^#! */usr/bin/env python[0-9.]*|#!/usr/bin/env python2|' {} +
+
+ mv "${pkgdir}"/usr/bin/{,python2-}pyside-uic
+ mv "${pkgdir}"/usr/share/man/man1/{,python2-}pyside-uic.1
+
+ rm -rf "${pkgdir}"/usr/lib/python2*/site-packages/pysideuic/{port_v3,pyside-uic.1}
+ rm -f "${pkgdir}"/usr/bin/pyside-{lupdate,rcc}
+ rm -f "${pkgdir}"/usr/share/man/man1/pyside-{lupdate,rcc}*
+
+ python2 -m compileall "${pkgdir}"/usr/lib/python2*/site-packages/pysideuic/
+ python2 -O -m compileall "${pkgdir}"/usr/lib/python2*/site-packages/pysideuic/
+}
+
+package_python-pyside-tools() {
+ depends=('python-pyside' 'pyside-tools-common')
+ pkgdesc='PySide lupdate, rcc, and uic development tools (for Python 3)'
+
+ cd "${srcdir}/Tools-${pkgver}/build3"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/lib/python3*/site-packages/pysideuic/{port_v2,pyside-uic.1}
+ rm -f "${pkgdir}"/usr/bin/pyside-{lupdate,rcc}
+ rm -f "${pkgdir}"/usr/share/man/man1/pyside-{lupdate,rcc}*
+
+ python3 -m compileall "${pkgdir}"/usr/lib/python3*/site-packages/pysideuic/
+ python3 -O -m compileall "${pkgdir}"/usr/lib/python3*/site-packages/pysideuic/
+}
+
+package_pyside-tools-common() {
+ depends=('qt4>=4.5')
+ pkgdesc='PySide lupdate, rcc, and uic development tools (Common Files)'
+
+ cd "${srcdir}/Tools-${pkgver}/build3"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/lib
+ rm -f "${pkgdir}"/usr/bin/pyside-uic
+ rm -f "${pkgdir}"/usr/share/man/man1/pyside-uic*
+}
+