diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/obconf |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/obconf')
-rw-r--r-- | extra/obconf/PKGBUILD | 25 | ||||
-rw-r--r-- | extra/obconf/obconf.install | 15 |
2 files changed, 40 insertions, 0 deletions
diff --git a/extra/obconf/PKGBUILD b/extra/obconf/PKGBUILD new file mode 100644 index 000000000..be385bdde --- /dev/null +++ b/extra/obconf/PKGBUILD @@ -0,0 +1,25 @@ +# $Id: PKGBUILD 38529 2009-05-08 21:31:17Z jgc $ +# Maintainer: tobias <tobias@archlinux.org> +# Contributor: Tobias Kieslich <tobias@justdreams.de> + +pkgname=obconf +pkgver=2.0.3 +pkgrel=3 +pkgdesc="A gtk2 based configuration tool for the Openbox windowmanager" +arch=(i686 x86_64) +license=('GPL') +url="http://tr.openmonkey.com/pages/obconf/" +depends=('openbox>=3.4.5' 'gtk2>=2.16.1' 'libglade' 'desktop-file-utils') +install=${pkgname}.install +source=(http://icculus.org/openbox/${pkgname}/${pkgname}-${pkgver}.tar.gz \ + http://icculus.org/openbox/mw/images/8/80/Obconf-72.png) +md5sums=('b22e273721851dedad72acbc77eefb68' '340ae4732e76731d2838473541eb8d4e') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + ./configure --prefix=/usr || return 1 + make || return 1 + sed -i 's/=openbox/=obconf/' obconf.desktop || return 1 + make DESTDIR=${startdir}/pkg install || return 1 + install -Dm644 ../Obconf-72.png ${startdir}/pkg/usr/share/pixmaps/obconf.png || return 1 +} diff --git a/extra/obconf/obconf.install b/extra/obconf/obconf.install new file mode 100644 index 000000000..5264d8979 --- /dev/null +++ b/extra/obconf/obconf.install @@ -0,0 +1,15 @@ +# arg 1: the new package version +post_install() { + update-desktop-database -q /usr/share/applications + update-mime-database /usr/share/mime 1> /dev/null +} + +post_upgrade() { + post_install $1 +} + +# arg 1: the old package version +post_remove() { + update-desktop-database -q + update-mime-database /usr/share/mime 1> /dev/null +} |