updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / openbox-gnome-places / PKGBUILD
bloba14631f8a3f6992fad986d180bee37b60ce1f122
1 # Contributor: 3ED <krzysztof1987/at/gmail/dot/com>
2 pkgname=openbox-gnome-places
3 pkgver=0.2.1.1
4 pkgrel=1
5 pkgdesc="Dynamically generates a menu for the Openbox3-Windowmanager that tries to resemble the Gnome2 Places-Menu."
6 arch=('i686' 'x86_64')
7 url="http://3ed.jogger.pl/2008/10/12/openbox-gnome-places/"
8 license=('GPL')
9 depends=('perl' 'gettext' 'openbox')
10 source=(http://csk.pl/~kas/dl/openbox-gnome-places/${pkgname}-${pkgver}.tar.xz)
11 sha256sums=('b9408f96cf188116d154d1afbf7b43d2818af5dbcb02a50732f593754a058eba')
12 backup=(etc/${pkgname}.conf)
14 build() {
15   cd "$srcdir/$pkgname-$pkgver"
16   install -Dm 755 "$srcdir/$pkgname-$pkgver/$pkgname.sh" \
17     "$pkgdir/usr/bin/$pkgname" || return 1
18   install -Dm 644 "$srcdir/$pkgname-$pkgver/$pkgname.conf" \
19     "$pkgdir/etc/$pkgname.conf" || return 1
21   cd "$srcdir/$pkgname-$pkgver/po"
22   for i in *; do
23     if [ -d "$i" ]; then
24       install -dm 755 "$pkgdir/usr/share/locale/$i/LC_MESSAGES/" || return 1
25       msgfmt "$i/$pkgname.po" -o "$i/$pkgname.mo" || return 1
26       install -Dm 644 "$i/$pkgname.mo" \
27         "$pkgdir/usr/share/locale/$i/LC_MESSAGES/$pkgname.mo" || return 1
28     fi
29   done
32 # vim:set ts=2 sw=2 et:
33 #$cat=x11