updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / obmenugen / PKGBUILD
blobb8d4c1c428063748a2a7549588a1748b5a698d53
1 # Contributor: Pável Varela Rodríguez [NeOnsKuLL] <neonskull@gmail.com>
2 pkgname=obmenugen
3 pkgver=0.5
4 pkgrel=3
5 _serie=0.5
6 _pkgrev=72
7 pkgdesc="Menu generator for Openbox3, based on .desktop files"
8 url="https://launchpad.net/obmenugen"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 depends=(openbox)
12 conflicts=(obmenugen-bin)
13 makedepends=(dmd1 libphobos1 txt2tags)
14 options=('!strip' 'docs')
15 source=(http://launchpad.net/obmenugen/$_serie/$pkgver/+download/obmenugen-$pkgver-r$_pkgrev.tar.bz2 makefile.patch)
16 md5sums=(c28dd7c12044062e50792f8edd0365c2 837015de87f91f5d43845d1fd500282e)
18 [ "$CARCH" = "x86_64" ] && depends=(${depends[@]} lib32-glibc)
19 [ "$CARCH" = "x86_64" ] && makedepends=(lib32-dmd txt2tags)
21 [[ -n "$(which gdmd 2>/dev/null)" ]] &&  makedepends=(gdc-bin txt2tags)
23 build() {
24   cd $srcdir/obmenugen-$pkgver-r$_pkgrev
25   patch -p1 < $startdir/makefile.patch
26   CC=""
27   [[ -n $(which gdmd 2>/dev/null) ]] && CC="CC=gdmd" 
28   make $CC || return 1
29   make install PREFIX=$pkgdir/usr/ || return 1