updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / puae-git / PKGBUILD
blobae2771beffc0e9b140ba127b08a13f3d1a3eeee7
1 # Contributor: ianux <ianux@free.fr>
2 pkgname=puae-git
3 pkgver=20110803
4 pkgrel=1
5 pkgdesc="Amiga emulator for *nix systems - successor of E-UAE"
6 arch=('i686' 'x86_64')
7 url="http://github.com/GnoStiC/PUAE"
8 license=('GPL')
9 depends=('alsa-lib' 'gtk2' 'libgl' 'sdl')
10 makedepends=('git')
11 conflict=('e-uae' 'uae')
12 source=()
13 md5sums=()
15 _gitroot="http://github.com/GnoStiC/PUAE.git"
16 _gitname="PUAE"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./bootstrap.sh
37   ./configure --prefix=/usr \
38     --with-sdl \
39     --with-sdl-gfx \
40     --with-sdl-gl \
41     --with-alsa \
42     --enable-bsdsock
43     # --enable-scsi-device
44   make
45   make DESTDIR="$pkgdir" install
46