From 068f1f30c0bba25b6b88cefbe982a72535fa1951 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 5 Oct 2011 23:14:45 +0000 Subject: Wed Oct 5 23:14:44 UTC 2011 --- staging/kdeedu-kig/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ staging/kdeedu-kig/kdeedu-kig.install | 12 ++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 staging/kdeedu-kig/PKGBUILD create mode 100644 staging/kdeedu-kig/kdeedu-kig.install (limited to 'staging/kdeedu-kig') diff --git a/staging/kdeedu-kig/PKGBUILD b/staging/kdeedu-kig/PKGBUILD new file mode 100644 index 000000000..9e4291cdc --- /dev/null +++ b/staging/kdeedu-kig/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 139794 2011-10-04 23:38:46Z andrea $ +# Maintainer: Andrea Scarpino + +pkgname=kdeedu-kig +pkgver=4.7.2 +pkgrel=1 +pkgdesc="Interactive Geometry" +url="http://kde.org/applications/education/kig/" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kde' 'kdeedu') +depends=('kdebase-runtime') +makedepends=('cmake' 'automoc4') +install=${pkgname}.install +source=("http://download.kde.org/stable/${pkgver}/src/kig-${pkgver}.tar.bz2") +sha1sums=('2234ddb85e8c52214f9fdb5eb25f9491e23c7d86') + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../kig-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "${srcdir}"/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 +} diff --git a/staging/kdeedu-kig/kdeedu-kig.install b/staging/kdeedu-kig/kdeedu-kig.install new file mode 100644 index 000000000..81ce5c4b0 --- /dev/null +++ b/staging/kdeedu-kig/kdeedu-kig.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf