updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / eduke32 / PKGBUILD
blob9946ef587c8498e4964dd4d250aa31276b3ac559
1 # Contributor: Arkham <arkham at archlinux dot us>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
3 # Maintainer: JD Steffen
5 pkgname=eduke32
6 # This is probably breaking every packaging rule there is.
7 _pkgdate=20120114
8 _pkgsvnnum=2257
9 pkgver=$_pkgdate.$_pkgsvnnum
10 pkgrel=2
11 pkgdesc='An advanced port of the classic FPS "Duke Nukem 3D" by 3D Realms'
12 arch=('i686' 'x86_64')
13 url="http://eduke32.com/"
14 license=('GPL' 'custom')
15 depends=('sdl_mixer' 'gtk2' 'mesa')
16 optdepends=('eduke32-hrp' 'eduke32-dukeplus')
17 makedepends=('nasm')
18 source=(http://dukeworld.duke4.net/${pkgname}/synthesis/${_pkgdate}-${_pkgsvnnum}/${pkgname}_src_${_pkgdate}-${_pkgsvnnum}.tar.bz2
19         $pkgname.png
20         $pkgname.desktop)
21 md5sums=('b35c6647a1b9ea8c2eeca81c8992ec92'
22          'bc189b860c8562e10f01e0faed909089'
23          'a7273a79d30de8f3ee2e1df2441ed856')
25 build() {
26     cd $srcdir/${pkgname}_${_pkgdate}-${_pkgsvnnum}
27    
28     # Compile
29     make debug="${CXXFLAGS}"
31     # Install bin, license, icon and desktop files
32     install -d $pkgdir/usr/bin
33     install -m 755 {eduke,mapster}32 $pkgdir/usr/bin/
34     install -Dm 644 buildlic.txt $pkgdir/usr/share/licenses/$pkgname/buildlic.txt
35     install -Dm 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
36     install -Dm 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop