From 52442b30a60f3a0dc7bc0eb214d123d001987c83 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 7 Sep 2011 15:14:25 +0000 Subject: Wed Sep 7 15:14:25 UTC 2011 --- staging/kdeedu-khangman/PKGBUILD | 31 +++++++++++++++++++++++++ staging/kdeedu-khangman/kdeedu-khangman.install | 11 +++++++++ 2 files changed, 42 insertions(+) create mode 100644 staging/kdeedu-khangman/PKGBUILD create mode 100644 staging/kdeedu-khangman/kdeedu-khangman.install (limited to 'staging/kdeedu-khangman') diff --git a/staging/kdeedu-khangman/PKGBUILD b/staging/kdeedu-khangman/PKGBUILD new file mode 100644 index 000000000..63e87292b --- /dev/null +++ b/staging/kdeedu-khangman/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 137266 2011-09-06 21:45:32Z andrea $ +# Maintainer: Andrea Scarpino + +pkgname=kdeedu-khangman +pkgver=4.7.1 +pkgrel=1 +pkgdesc="Hangman Game" +url="http://kde.org/applications/education/khangman/" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kde' 'kdeedu') +depends=('kdebase-runtime' 'libkdeedu') +makedepends=('cmake' 'automoc4') +install=${pkgname}.install +source=("http://download.kde.org/stable/${pkgver}/src/khangman-${pkgver}.tar.bz2") +sha1sums=('ac13da342cb2380ba2c703fbef9f131b75675b9e') + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../khangman-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "${srcdir}"/build + make DESTDIR="${pkgdir}" install +} diff --git a/staging/kdeedu-khangman/kdeedu-khangman.install b/staging/kdeedu-khangman/kdeedu-khangman.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/staging/kdeedu-khangman/kdeedu-khangman.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf