diff options
Diffstat (limited to 'community/apper')
-rw-r--r-- | community/apper/PKGBUILD | 45 | ||||
-rw-r--r-- | community/apper/apper.install | 29 |
2 files changed, 74 insertions, 0 deletions
diff --git a/community/apper/PKGBUILD b/community/apper/PKGBUILD new file mode 100644 index 000000000..1dc3a6397 --- /dev/null +++ b/community/apper/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 75865 2012-09-03 20:25:45Z 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.2 +pkgrel=5 +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=("http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.bz2") +sha256sums=('975fede728e7ab96d8e244ae721a2e15ae40b9fb1cd189a1f4afd46c400b219f') + +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 + # avoid gnome-packagekit conflict (stolen from fedora as suggested) + mv "$pkgdir/usr/share/dbus-1/services/org.freedesktop.PackageKit.service" \ + "$pkgdir/usr/share/dbus-1/services/kde-org.freedesktop.PackageKit.service" + # 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 +} |