desktop/kig/PKGBUILD
2015-02-23 15:08:49 +00:00

44 lines
1.1 KiB
Bash

# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kig
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kig
pkgver=${_kdever}
pkgrel=1
pkgdesc="Interactive geometry"
url="http://kde.org/applications/education/kig/"
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")
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../kig-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
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
}