[arch-commits] Commit in (4 files)

Jelle van der Waa jelle at nymeria.archlinux.org
Sun Jun 29 10:31:10 UTC 2014


    Date: Sunday, June 29, 2014 @ 12:31:10
  Author: jelle
Revision: 113740

shiboken: initial commit

Added:
  shiboken/
  shiboken/repos/
  shiboken/trunk/
  shiboken/trunk/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Added: shiboken/trunk/PKGBUILD
===================================================================
--- shiboken/trunk/PKGBUILD	                        (rev 0)
+++ shiboken/trunk/PKGBUILD	2014-06-29 10:31:10 UTC (rev 113740)
@@ -0,0 +1,60 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+# Contributor: Matthias Maennich <arch at maennich.net>
+
+pkgname=shiboken
+pkgver=1.2.2
+pkgrel=2
+pkgdesc="Support library for Python bindings"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://www.pyside.org"
+depends=("python2" "python3" "qt4>=4.8" 'libxslt')
+optdepends=("python-sphinx: Documentation")
+makedepends=('cmake')
+conflicts=("libshiboken")
+provides=("libshiboken" "shiboken")
+source=("http://download.qt-project.org/official_releases/pyside/$pkgname-$pkgver.tar.bz2")
+md5sums=('9f5bee9d414ce51be07ff7a20054a48d')
+
+build(){
+    cd "$srcdir/shiboken-$pkgver"
+    # build python2
+    mkdir -p build_python2 && cd build_python2
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr  \
+              -DCMAKE_BUILD_TYPE=Release   \
+              -DBUILD_TESTS=OFF            \
+              -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+              -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+              -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+              -DQT_QMAKE_EXECUTABLE=qmake4
+    make
+
+    # build python3
+    cd "$srcdir/shiboken-$pkgver"
+    mkdir -p build && cd build
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr  \
+              -DCMAKE_BUILD_TYPE=Release   \
+              -DBUILD_TESTS=OFF            \
+              -DUSE_PYTHON3=yes            \
+              -DQT_QMAKE_EXECUTABLE=qmake4
+    make
+}
+
+package(){
+    cd "$srcdir/shiboken-$pkgver/build"
+    make DESTDIR="$pkgdir" install
+
+    cd data
+    install -D -m 755 ShibokenConfig.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver"
+    install -D -m 755 ShibokenConfigVersion.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+    install -D -m 755 ShibokenConfig.cpython-3?m.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+    install -D -m 755 shiboken.pc "$pkgdir/usr/lib/pkgconfig/"
+
+    cd "$srcdir/shiboken-$pkgver/build_python2"
+    make DESTDIR="$pkgdir" install
+
+    cd data
+    install -D -m 755 ShibokenConfig-python2.7.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+}
+


Property changes on: shiboken/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list