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/"
|
2012-11-10 12:43:24 +08:00
|
|
|
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')
|
2012-11-02 14:36:17 +08:00
|
|
|
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')
|
2012-02-06 04:46:15 +08:00
|
|
|
options=('docs' '!splithdr' 'splitdbg' 'log')
|
2011-07-23 02:02:15 +08:00
|
|
|
|
|
|
|
build() {
|
2012-11-02 14:36:17 +08:00
|
|
|
cd "${srcdir}"
|
2012-10-02 08:48:45 +08:00
|
|
|
|
2012-06-10 08:03:52 +08:00
|
|
|
rm -rf build
|
|
|
|
mkdir build && cd build
|
2012-02-06 04:46:15 +08:00
|
|
|
|
|
|
|
cmake ../pykde4-${pkgver} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2012-06-12 03:10:17 +08:00
|
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python2
|
2012-02-06 04:46:15 +08:00
|
|
|
make
|
2011-07-23 02:02:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-02-06 04:46:15 +08:00
|
|
|
cd "${srcdir}"/build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2011-07-23 02:02:15 +08:00
|
|
|
|
2012-02-06 04:46: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
|
|
|
}
|