desktop/kdebindings-pykde4/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

2011-07-23 02:02:15 +08:00
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
2012-06-27 08:02:41 +08:00
# maintainer: abveritas[at]chakra-project[dog]org>
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2011-07-23 02:02:15 +08:00
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
#
# package info
#
pkgname=kdebindings-pykde4
_pkgname=pykde4
pkgver=${_kdever}
2012-12-11 08:59:34 +08:00
pkgrel=2
2011-07-23 02:02:15 +08:00
pkgdesc="KDE bindings for python"
url="http://kde.org/"
arch=('x86_64')
2011-07-23 02:02:15 +08:00
license=('GPL' 'LGPL' 'FDL')
2012-05-27 06:52:55 +08:00
depends=('pyqt' 'qscintilla' 'boost-libs' "kdepim-runtime>=${_kdever}")
2011-07-23 02:02:15 +08:00
makedepends=('cmake' 'automoc4' 'polkit-qt' 'boost')
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
2012-05-27 06:52:55 +08:00
2011-07-23 02:02:15 +08:00
groups=("kde" "kdebindings" "kde-uninstall")
provides=('kdebindings-python' 'pykde4')
replaces=('kdebindings-python')
conflicts=('kdebindings-python')
options=('docs' '!splithdr' 'splitdbg' 'log')
2011-07-23 02:02:15 +08:00
build() {
cd "${srcdir}"
2012-06-10 08:03:52 +08:00
rm -rf build
mkdir build && cd build
cmake ../pykde4-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2012-06-12 03:10:17 +08:00
-DPYTHON_EXECUTABLE=/usr/bin/python2
make
2011-07-23 02:02:15 +08:00
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
2011-07-23 02:02:15 +08:00
# Use the python2 executable
find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
2011-07-23 02:02:15 +08:00
}