desktop/shiboken-generator/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 9135917a60 Updated missing package in PySide stack.
2011-06-19 11:21:01 +00:00

42 lines
1.3 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=shiboken-generator
_pkgname=shiboken
_pyver=2.7
pkgver=1.0.3
pkgrel=1
pkgdesc="Support library for Python bindings."
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.pyside.org"
depends=("python>=$_pyver" 'qt>=4.7' 'openssl' 'generatorrunner')
makedepends=('cmake' 'automoc4')
source=("http://www.pyside.org/files/$_pkgname-$pkgver.tar.bz2")
md5sums=('d155d61156c8db25a418b80ade47962f')
build(){
cd $srcdir/shiboken-$pkgver
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make $_pkgname
}
package(){
cd $srcdir/$_pkgname-$pkgver/build/generator
make DESTDIR=$pkgdir install
mkdir -m 755 -p $pkgdir/usr/lib/cmake/Shiboken-$pkgver/
install -m 755 ../data/ShibokenConfig.cmake $pkgdir/usr/lib/cmake/Shiboken-$pkgver/
install -m 755 ../data/ShibokenConfigVersion.cmake $pkgdir/usr/lib/cmake/Shiboken-$pkgver/
install -m 755 ../data/ShibokenConfig-python$_pyver.cmake $pkgdir/usr/lib/cmake/Shiboken-$pkgver/
mkdir -m 755 -p $pkgdir/usr/lib/pkgconfig/
install -m 755 ../data/$_pkgname.pc $pkgdir/usr/lib/pkgconfig/
}