[arch-commits] Commit in kaffeine/trunk (PKGBUILD kaffeine.install)

Eric Bélanger eric at archlinux.org
Sat Jan 7 05:06:44 UTC 2012


    Date: Saturday, January 7, 2012 @ 00:06:44
  Author: eric
Revision: 146242

upgpkg: kaffeine 1.2.2-2

Rebuild against xine-lib 1.2.0, Add install file to update icon cache and mime db

Added:
  kaffeine/trunk/kaffeine.install
Modified:
  kaffeine/trunk/PKGBUILD

------------------+
 PKGBUILD         |   13 +++++++------
 kaffeine.install |   12 ++++++++++++
 2 files changed, 19 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-01-07 04:20:45 UTC (rev 146241)
+++ PKGBUILD	2012-01-07 05:06:44 UTC (rev 146242)
@@ -3,17 +3,19 @@
 
 pkgname=kaffeine
 pkgver=1.2.2
-pkgrel=1
+pkgrel=2
 pkgdesc='KDE media player'
 license=('GPL')
 arch=('i686' 'x86_64')
 url="http://kaffeine.kde.org"
 depends=('kdelibs' 'kdebase-runtime' 'xine-lib')
-makedepends=('pkgconfig' 'cmake' 'automoc4')
+makedepends=('pkg-config' 'cmake' 'automoc4')
+install=kaffeine.install
 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('690e48d2e5fe123887109aa9b1bc1c31')
 
 build() {
-	cd $srcdir
+	cd "$srcdir"
 	mkdir build
 	cd build
 	cmake ../${pkgname}-${pkgver} \
@@ -24,7 +26,6 @@
 }
 
 package() {
-        cd $srcdir/build
-	make DESTDIR=$pkgdir install
+        cd "$srcdir/build"
+	make DESTDIR="$pkgdir" install
 }
-md5sums=('690e48d2e5fe123887109aa9b1bc1c31')

Added: kaffeine.install
===================================================================
--- kaffeine.install	                        (rev 0)
+++ kaffeine.install	2012-01-07 05:06:44 UTC (rev 146242)
@@ -0,0 +1,12 @@
+post_install() {
+  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}




More information about the arch-commits mailing list