blob: a5bc9b26e2e8fab5af060664b1ad5eaa104c5265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Michael Schubert <mschu.dev at gmail>
# Contributor: Hugo Osvaldo Barrera <hugo@osvaldobarrera.com.ar>
# Contributor: Matthias Maennich <arch@maennich.net>
pkgname=shiboken-git
pkgver=0.4.0.1373.g9536f13
pkgrel=1
_pyver=2.7
pkgdesc="Support library for Python bindings"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.pyside.org"
depends=("python2>=${_pyver}" "qt4>=4.8" 'openssl')
optdepends=("python-sphinx: Documentation")
makedepends=('cmake' 'automoc4' 'generatorrunner-git')
conflicts=("shiboken")
provides=("shiboken")
source=($pkgname::git+https://github.com/PySide/Shiboken.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --always | sed 's|-|.|g'
}
build() {
cd "$srcdir/$pkgname"
mkdir -p build && cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
-DPYTHON_EXECUTABLE=/usr/bin/python$_pyver \
-DPYTHON_LIBRARY=/usr/lib/libpython$_pyver.so
make
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="$pkgdir" install
cd generator
mkdir -p "$pkgdir/usr/lib/cmake/Shiboken-$pkgver"
install -Dm755 ../data/ShibokenConfig.cmake \
"$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
install -Dm755 ../data/ShibokenConfigVersion.cmake \
"$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
install -Dm755 ../data/ShibokenConfig-python$_pyver.cmake \
"$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
install -Dm755 ../data/shiboken.pc "$pkgdir/usr/lib/pkgconfig"
}
|