From 5894dd675f4bd3ba296d262fae99b3b87a0f87fd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Nov 2011 23:14:53 +0000 Subject: Thu Nov 24 23:14:53 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..ce375afaa --- /dev/null +++ b/staging/kdeedu-khangman/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 143158 2011-11-23 08:02:49Z andrea $ +# Maintainer: Andrea Scarpino + +pkgname=kdeedu-khangman +pkgver=4.7.80 +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/unstable/${pkgver}/src/khangman-${pkgver}.tar.bz2") +sha1sums=('3e4e14a145e35ec4a433f6db1bbbf4bc3804953c') + +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