diff options
author | root <root@rshg054.dnsready.net> | 2011-10-05 23:14:45 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-05 23:14:45 +0000 |
commit | 068f1f30c0bba25b6b88cefbe982a72535fa1951 (patch) | |
tree | 1cbc872f02ee675155a7dc79fc637b4f2ed7e5e8 /staging/kdebindings-python | |
parent | 3567a49f79d2dbf828b723ab54982fa6c7ea1c80 (diff) |
Wed Oct 5 23:14:44 UTC 2011
Diffstat (limited to 'staging/kdebindings-python')
-rw-r--r-- | staging/kdebindings-python/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/staging/kdebindings-python/PKGBUILD b/staging/kdebindings-python/PKGBUILD new file mode 100644 index 000000000..6f620b5a0 --- /dev/null +++ b/staging/kdebindings-python/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 139766 2011-10-04 23:10:04Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> + +pkgname=kdebindings-python +pkgver=4.7.2 +pkgrel=1 +pkgdesc="KDE bindings for Python" +url="http://kde.org/" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kdebindings') +depends=('kdepim-runtime' 'python2-pyqt' 'qscintilla' 'boost-libs') +makedepends=('cmake' 'automoc4' 'boost') +source=("http://download.kde.org/stable/${pkgver}/src/pykde4-${pkgver}.tar.bz2") +sha1sums=('cc7844851110697f06da60cf4a1ee527eda76087') + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../pykde4-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_EXECUTABLE=/usr/bin/python2 + make +} + +package() { + cd "${srcdir}"/build + make DESTDIR="${pkgdir}" install + + # Use the python2 executable + find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' +} |