1 # Contributor: Pável Varela Rodríguez [NeOnsKuLL] <neonskull@gmail.com>
7 pkgdesc="Menu generator for Openbox3, based on .desktop files"
8 url="https://launchpad.net/obmenugen"
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)
24 cd $srcdir/obmenugen-$pkgver-r$_pkgrev
25 patch -p1 < $startdir/makefile.patch
27 [[ -n $(which gdmd 2>/dev/null) ]] && CC="CC=gdmd"
29 make install PREFIX=$pkgdir/usr/ || return 1