summaryrefslogtreecommitdiff
path: root/community/apper
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-26 00:01:46 +0000
committerroot <root@rshg054.dnsready.net>2012-03-26 00:01:46 +0000
commitf96a2208b6a0ba89c3d824514a3929f08d79f7bf (patch)
tree88c1033b9ec826ca6da1f1847685957bce496c62 /community/apper
parent891f44722456b693d99b397f7e332a9ed68a47a2 (diff)
Mon Mar 26 00:01:45 UTC 2012
Diffstat (limited to 'community/apper')
-rw-r--r--community/apper/PKGBUILD42
-rw-r--r--community/apper/apper.install29
2 files changed, 71 insertions, 0 deletions
diff --git a/community/apper/PKGBUILD b/community/apper/PKGBUILD
new file mode 100644
index 000000000..e7605e4bb
--- /dev/null
+++ b/community/apper/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 68404 2012-03-24 09:35:57Z idevolder $
+# Maintainer: BlackIkeEagle < ike DOT devolder AT gmail DOT com >
+# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
+# Contributor: Zom <zom@eevul.org>
+
+pkgname=apper
+_pkgmainver=0.7
+pkgver=0.7.1
+pkgrel=6
+pkgdesc="KDE tools for PackageKit"
+arch=('i686' 'x86_64')
+url="http://kde-apps.org/content/show.php/Apper?content=84745"
+license=('GPL')
+depends=('kdebase-workspace' 'packagekit-qt2>=0.6.17')
+makedepends=('cmake' 'automoc4' 'chrpath')
+install="$pkgname.install"
+provides=('kpackagekit')
+conflicts=('kpackagekit')
+replaces=('kpackagekit')
+source=("https://launchpad.net/$pkgname/$_pkgmainver/$pkgver/+download/$pkgname-$pkgver.tar.bz2")
+sha256sums=('d604e766c788ed26d5e352b7e97477ba58d6fe9e41db0c2649a2a39460bcab98')
+
+build() {
+ cd "$pkgname-$pkgver"
+ [ -d "build" ] && rm -rf build
+ mkdir build
+ cd build
+
+ cmake ../ \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ cd build
+ make DESTDIR="$pkgdir" install
+ # Hack around cmake rpath bug (debian)
+ chrpath --list "$pkgdir/usr/bin/apper"
+ chrpath --replace "/usr/lib/apper" "$pkgdir/usr/bin/apper"
+}
diff --git a/community/apper/apper.install b/community/apper/apper.install
new file mode 100644
index 000000000..9837f1937
--- /dev/null
+++ b/community/apper/apper.install
@@ -0,0 +1,29 @@
+available() {
+ which "$1" >/dev/null 2>&1
+}
+
+updatemime() {
+ # Setup Menus
+ if available update-desktop-database
+ then
+ update-desktop-database -q /usr/share/applications
+ fi
+
+ # Setup MIME types
+ if available update-mime-database
+ then
+ update-mime-database /usr/share/mime >/dev/null
+ fi
+}
+
+post_install() {
+ updatemime
+}
+
+post_upgrade() {
+ updatemime
+}
+
+post_remove() {
+ updatemime
+}