updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyside-tools / PKGBUILD
blob78e6fd82e14f17ee91f157475cb31c5e805a0e6b
1 # Maintainer: Matthias Maennich <arch@maennich.net>
2 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=pyside-tools
4 pkgver=0.2.13
5 pkgrel=5
6 _pyver=2.7
7 pkgdesc="UI Compiler (pyside-uic) plus Qt Resource Compiler (pyside-rcc4) for PySide."
8 arch=('i686' 'x86_64')
9 license=('LGPL')
10 url="http://www.pyside.org"
11 depends=('pyside>=1.1.0' 'python2')
12 makedepends=('cmake' 'automoc4' 'shibokengenerator>=1.1.0')
13 source=("http://www.pyside.org/files/$pkgname-$pkgver.tar.bz2")
14 md5sums=('14d3a36df06d680357d7bc1960f19a6d')
16 build(){
17     cd $srcdir/$pkgname-$pkgver
18     sed -e "s/python/python2/g" pyside-uic > pyside-uic_mod && mv pyside-uic{_mod,} && chmod 755 pyside-uic
19     mkdir -p build && cd build
20     cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
21               -DCMAKE_BUILD_TYPE=Release \
22               -DSHIBOKEN_PYTHON_SUFFIX=-python$_pyver \
23               -DPYTHON_EXECUTABLE=/usr/bin/python$_pyver
24     make
27 package(){
28     cd $srcdir/$pkgname-$pkgver/build
29         make DESTDIR=$pkgdir install