summaryrefslogtreecommitdiff
path: root/community/kshutdown
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-28 00:05:59 -0800
committerroot <root@rshg054.dnsready.net>2013-01-28 00:05:59 -0800
commit1b9f6dc846379470b620b5dbb9d4d7acd1de148c (patch)
tree2305b950a3c94970b05c1a38af473f5cca95af02 /community/kshutdown
parentb9b96ada56ad38df20b1e528a095a1e86ab67a2b (diff)
Mon Jan 28 00:05:59 PST 2013
Diffstat (limited to 'community/kshutdown')
-rw-r--r--community/kshutdown/PKGBUILD30
-rw-r--r--community/kshutdown/kshutdown.install11
2 files changed, 41 insertions, 0 deletions
diff --git a/community/kshutdown/PKGBUILD b/community/kshutdown/PKGBUILD
new file mode 100644
index 000000000..9803fb1f2
--- /dev/null
+++ b/community/kshutdown/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 83158 2013-01-27 16:19:25Z pierre $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=kshutdown
+pkgver=3.0beta5
+pkgrel=1
+pkgdesc="Shutdown Utility for KDE"
+arch=('i686' 'x86_64')
+url="http://kshutdown.sourceforge.net/"
+license=('GPL')
+depends=('kdebase-workspace')
+makedepends=('cmake' 'automoc4')
+install='kshutdown.install'
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-source-${pkgver}.zip")
+sha1sums=('108e27a7d1cef505c296656f92ab071d8c53bce3')
+
+build() {
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community/kshutdown/kshutdown.install b/community/kshutdown/kshutdown.install
new file mode 100644
index 000000000..1c0de2e4f
--- /dev/null
+++ b/community/kshutdown/kshutdown.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}