From 84fe155e2233db86fcc13134d8802ba1dab0ae83 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Oct 2011 23:15:38 +0000 Subject: Wed Oct 26 23:15:38 UTC 2011 --- community/qtfm/PKGBUILD | 19 +++++++++---------- community/qtfm/qtfm.install | 11 +++++++++++ 2 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 community/qtfm/qtfm.install (limited to 'community/qtfm') diff --git a/community/qtfm/PKGBUILD b/community/qtfm/PKGBUILD index 8806d5b01..555f01db7 100644 --- a/community/qtfm/PKGBUILD +++ b/community/qtfm/PKGBUILD @@ -1,27 +1,26 @@ +# $Id: PKGBUILD 57268 2011-10-25 05:38:14Z ebelanger $ # Maintainer: Brad Fanella # Contributor: Wittfella pkgname=qtfm -pkgver=5.0 +pkgver=5.1 pkgrel=1 pkgdesc="A lightweight file manager" arch=('i686' 'x86_64') url="http://www.qtfm.org" license=('GPL') depends=('qt') +install=qtfm.install source=(http://www.qtfm.org/$pkgname-$pkgver.tar.gz) -md5sums=('ad8e6d2d1533b2b1327cda557251a35d') +md5sums=('e7e079d2586b46ce80998c52b777cb88') build() { - cd "$startdir/src/$pkgname-$pkgver" - qmake - make + cd "$srcdir/$pkgname-$pkgver" + qmake + make } package() { - cd "$startdir/src/$pkgname-$pkgver" - install -Dm 755 ${startdir}/src/$pkgname-$pkgver/qtfm ${startdir}/pkg/usr/bin/qtfm - install -Dm 644 ${startdir}/src/$pkgname-$pkgver/qtfm.desktop ${startdir}/pkg/usr/share/applications/qtfm.desktop - install -Dm 644 ${startdir}/src/$pkgname-$pkgver/images/qtfm.png ${startdir}/pkg/usr/share/pixmaps/qtfm.png + cd "$srcdir/$pkgname-$pkgver" + make INSTALL_ROOT="$pkgdir" install } - diff --git a/community/qtfm/qtfm.install b/community/qtfm/qtfm.install new file mode 100644 index 000000000..2eaa60550 --- /dev/null +++ b/community/qtfm/qtfm.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} -- cgit v1.2.3-54-g00ecf