summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Rojas2018-08-21 10:43:27 +0000
committerAntonio Rojas2018-08-21 10:43:27 +0000
commita380201d7efa638cf9a79863523f8e174a625027 (patch)
treec956693251ccf3c20e401e500eb1c337d826447e
downloadaur-a380201d7efa638cf9a79863523f8e174a625027.tar.gz
Dropped from repos
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD86
2 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..19abae34b67
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = python-pyside
+ pkgver = 1.2.4
+ pkgrel = 9
+ url = https://wiki.qt.io/PySide
+ arch = x86_64
+ license = LGPL
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ makedepends = python-shiboken
+ makedepends = python2-shiboken
+ makedepends = phonon-qt4
+ makedepends = cmake
+ source = pypi-python-pyside-1.2.4.tar.gz::https://pypi.python.org/packages/source/P/PySide/PySide-1.2.4.tar.gz
+ sha256sums = 1421bc1bf612c396070de9e1ffe227c07c1f3129278bc7d30c754b5146be2433
+
+pkgname = python-pyside-common
+ pkgdesc = Provides LGPL Qt bindings for Python and related tools for binding generation (Common Files)
+
+pkgname = python2-pyside
+ pkgdesc = Provides LGPL Qt bindings for Python and related tools for binding generation (Python 2 version)
+ depends = python2-shiboken
+ depends = python-pyside-common
+ optdepends = phonon-qt4: for PySide.phonon
+
+pkgname = python-pyside
+ pkgdesc = Provides LGPL Qt bindings for Python and related tools for binding generation (Python 3 version)
+ depends = python-shiboken
+ depends = python-pyside-common
+ optdepends = phonon-qt4: for PySide.phonon
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..32526961075
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,86 @@
+# Maintainer: Florian Pritz <bluewind@xinu.at>
+# Contributor: lilydjwg <lilydjwg@gmail.com>
+# Contributor: Matthias Maennich <arch@maennich.net>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+# Contributor: Jan-Erik Meyer-Luetgens <nyan at meyer-luetgens dot de>
+pkgbase=python-pyside
+pkgname=(python-pyside-common python2-pyside python-pyside)
+_pkgrealname=pyside
+pkgver=1.2.4
+pkgrel=9
+arch=(x86_64)
+license=(LGPL)
+url="https://wiki.qt.io/PySide"
+_qtver=4.8
+makedepends=(python-setuptools python2-setuptools python-shiboken python2-shiboken phonon-qt4 cmake)
+source=("pypi-$pkgbase-$pkgver.tar.gz::https://pypi.python.org/packages/source/P/PySide/PySide-$pkgver.tar.gz")
+sha256sums=('1421bc1bf612c396070de9e1ffe227c07c1f3129278bc7d30c754b5146be2433')
+
+build(){
+ cd PySide-$pkgver/sources/pyside
+
+ mkdir -p build_py3
+ cd build_py3
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=OFF \
+ -DQT_PHONON_INCLUDE_DIR=/usr/include/qt4/phonon -DQT_QMAKE_EXECUTABLE=qmake-qt4
+ make
+
+ cd ..
+ mkdir -p build_py2
+ cd build_py2
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=OFF \
+ -DQT_PHONON_INCLUDE_DIR=/usr/include/qt4/phonon -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
+ -DPYTHON_SUFFIX=-python2.7
+ make
+}
+
+package_python-pyside-common(){
+ pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Common Files)"
+ # cmake will use Python 3 version by default
+ cd PySide-$pkgver/sources/pyside/build_py3
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "$pkgdir"/usr/lib/pkgconfig
+ rm -rf "$pkgdir"/usr/lib/python* "$pkgdir"/usr/lib/libpyside.*
+ rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig*python*.cmake
+}
+
+package_python-pyside(){
+ depends=(python-shiboken python-pyside-common)
+ pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Python 3 version)"
+ optdepends=('phonon-qt4: for PySide.phonon')
+
+ cd PySide-$pkgver/sources/pyside/build_py3
+ make DESTDIR="$pkgdir" install
+
+ cp -r "$srcdir/PySide-$pkgver/pyside_package/PySide.egg-info" \
+ "$pkgdir/usr/lib/python3.7/site-packages/pyside-$pkgver-py3.7.egg-info"
+ mv "$pkgdir"/usr/lib/pkgconfig/pyside.pc \
+ "$pkgdir"/usr/lib/pkgconfig/pyside-py3.pc
+
+ rm -rf "$pkgdir"/usr/include
+ rm -rf "$pkgdir"/usr/share
+ rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig.cmake
+ rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfigVersion.cmake
+}
+
+package_python2-pyside(){
+ depends=(python2-shiboken python-pyside-common)
+ pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Python 2 version)"
+ optdepends=('phonon-qt4: for PySide.phonon')
+
+ cd "$srcdir/PySide-$pkgver/sources/pyside/build_py2"
+ make DESTDIR="$pkgdir" install
+
+ cp -r "$srcdir/PySide-$pkgver/pyside_package/PySide.egg-info" \
+ "$pkgdir/usr/lib/python2.7/site-packages/pyside-$pkgver-py2.7.egg-info"
+ mv "$pkgdir"/usr/lib/pkgconfig/pyside.pc \
+ "$pkgdir"/usr/lib/pkgconfig/pyside-py2.pc
+
+ sed -i 's#^Requires: shiboken$#Requires: shiboken-py2#' "$pkgdir"/usr/lib/pkgconfig/pyside-py2.pc
+
+ rm -rf "$pkgdir"/usr/include
+ rm -rf "$pkgdir"/usr/share
+ rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig.cmake
+ rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfigVersion.cmake
+}