updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / atari800 / PKGBUILD
blob14d9c83d49da2c79fc0c57f19d8c089dde1cdf63
1 # Original Contributor: Vinzenz Vietzke <vinz@archlinux.us>
2 # Modified By: Farhan Yousasf <farhany@gmail.com>
3 pkgname=atari800
4 pkgver=2.1.0
5 pkgrel=3
6 pkgdesc="An emulator of the Atari 800/800XL/130XE/5200 with various extensions"
7 arch=('i686' 'x86_64')
8 url="http://atari800.sourceforge.net/"
9 license=('GPL')
10 depends=('libpng' 'sdl')
11 makedepends=('unzip')
12 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz \
13   http://downloads.sourceforge.net/sourceforge/${pkgname}/xf25.zip)
14 install=atari800.install
15 md5sums=('53fdbaad6cb7752fb35895c6375ac9a7' \
16          '4dc3b6b4313e9596c4d474785a37b94d')
18 build()
20   # This emulator has a few linux compatible targets. Edit the target
21   # and depends variables if you'd like a different target.
22   # Valid choices are: ncurses, svgalib, sdl, x11 
23   _target=sdl
25   # Pass the reponse to the configure script
26   cd ${startdir}/src/${pkgname}-${pkgver}/src
27   ./configure --target=${_target} --prefix=/usr
28   sed s/\ -ltermcap// Makefile > Makefile.tmp
29   mv Makefile.tmp Makefile 
30   make || return 1
31   make DESTDIR=${startdir}/pkg install
32   
33   # Copy the required ROMs and disks to /usr/share/atari800
34   cd ${startdir}/src
35   install -d ${startdir}/pkg/usr/share/${pkgname}
36   for _n in *.ROM *.XFD *.ATR; do
37     install -m644 ${_n} ${startdir}/pkg/usr/share/${pkgname}/
38   done