desktop/kig/PKGBUILD
2017-08-10 17:14:23 +01:00

42 lines
1.1 KiB
Bash

# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kig
source ../kdeapps.conf
pkgname=kig
pkgver=${_kdever}
pkgrel=1
pkgdesc="Interactive geometry"
url="http://kde.org/applications/education/kig/"
screenshot="https://www.kde.org/images/screenshots/kig.png"
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
depends=('ktexteditor' 'kdelibs4support')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3' 'boost')
conflicts=('kdeedu-kig')
provides=('kdeedu-kig')
replaces=('kdeedu-kig')
groups=("kde" "kdeedu" "kde-uninstall")
categories=('education')
install=${pkgname}.install
source=("$_mirror/${pkgname}-$_kdever.tar.xz"{,.sig})
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../kdeapps.sums | cut -d " " -f1`
'SKIP')
validpgpkeys=(${Avalidpgpkeys[@]})
prepare() {
mkdir -p build
}
build() {
cd build
cmake_kf5 ../${pkgname}-${pkgver}
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
# Use the python2 executable
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}"/usr/bin/pykig.py
}