updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / aranym / PKGBUILD
blobd92446de20b47041cd0d162865524d47dca61cae
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
2 # Contributor Daniel Illgen <daniel.illgen@googlemail.com>
3 # Contributor: Christer Solskogen <solskogen@carebears.mine.nu>
4 # Contributor: Giovanni Condello <condellog@gmail.com>
6 pkgname=aranym
7 pkgver=0.9.11
8 pkgrel=1
9 pkgdesc="Atari Running on Any Machine"
10 url="http://aranym.sourceforge.net"
11 depends=('gcc-libs' 'bash' 'sdl_image')
12 arch=('i686' 'x86_64')
13 license=('GPL')
14 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
15 md5sums=('00e45be0179ae0d725124bc48de79b4f')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   # aranym-jit isn't available for x86_64 architecture
21   if [ "$CARCH" == "i686" ]; then
22     ./configure --prefix=/usr --mandir=/usr/share/man --disable-nat-debug --enable-jit-compiler --enable-nfjpeg
23     make
24     mv aranym aranym-jit
25     make clean
26   fi
28   ./configure --prefix=/usr --mandir=/usr/share/man --disable-nat-debug --enable-fullmmu --enable-lilo --enable-fixedvideoram --enable-nfjpeg
29   make
30   mv aranym aranym-mmu
31   make clean
33   ./configure --prefix=/usr --mandir=/usr/share/man --disable-nat-debug --disable-nat-debug --enable-nfjpeg
34   make
37 package() {
38   cd "$srcdir/$pkgname-$pkgver"
40   make DESTDIR="$pkgdir" install
42   if [ "$CARCH" == "i686" ]; then
43     install aranym-jit "$pkgdir"/usr/bin
44   fi
46   install aranym-mmu "$pkgdir"/usr/bin
47   install aratapif "$pkgdir"/usr/bin
48   install -D contrib/icon-32.png \
49     ${pkgdir}/usr/share/pixmaps/aranym.png
50   install -D contrib/aranym.desktop \
51     ${pkgdir}/usr/share/applications/aranym.desktop