Skip to content

Instantly share code, notes, and snippets.

Created March 17, 2015 08:56
Show Gist options
  • Save anonymous/bc8a55437b8de600830d to your computer and use it in GitHub Desktop.
Save anonymous/bc8a55437b8de600830d to your computer and use it in GitHub Desktop.
pkgname=pykde5
pkgver=r18.7679bd2
pkgrel=1
pkgdesc='Python bindings for KDE frameworks 5'
url='https://projects.kde.org/projects/kde/kdebindings/python/pykde5'
arch=(i686 x86_64)
license=(GPL LGPL FDL)
depends=(python-pyqt5 python-sip kauth kitemmodels kitemviews karchive kplotting solid kcoreaddons sonnet kguiaddons kwidgetsaddons)
makedepends=(extra-cmake-modules kdoctools git)
conflicts=(kdebindings-pykde4)
replaces=(kdebindings-pykde4)
#source=("$_mirror/${pkgname}-$_kdever.tar.xz")
source=("git://anongit.kde.org/pykde5")
md5sums=(SKIP)
pkgver() {
cd $pkgname
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir"
mkdir -p build
cd build
cmake ../$pkgname \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
-DSYSCONF_INSTALL_DIR=/etc \
-DQML_INSTALL_DIR=/usr/lib/qt/qml \
-DPLUGIN_INSTALL_DIR=/usr/lib/qt/plugins \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3
make
}
package() {
cd build
make DESTDIR=$pkgdir install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment