updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / puae-qt-git / PKGBUILD
blobf4d9fd4152be82c204d60b83faddb59b5b7a1e2d
1 # Maintainer: Kelytha <kelytharun _AT_ gmail>
2 # Contributor: ianux <ianux@free.fr>
3 pkgname=puae-qt-git
4 pkgver=20111027
5 pkgrel=1
6 pkgdesc="Qt build of the PUAE Amiga emulator"
7 arch=('i686' 'x86_64')
8 url="http://github.com/GnoStiC/PUAE"
9 license=('GPL')
10 depends=('alsa-lib' 'qt' 'libgl' 'sdl' 'zlib' 'glib2' 'freetype' 'libpng')
11 makedepends=('git')
12 conflict=('e-uae' 'uae')
13 source=()
14 md5sums=()
16 _gitroot="http://github.com/GnoStiC/PUAE.git"
17 _gitname="PUAE"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./bootstrap.sh
38   ./configure --prefix=/usr \
39     --with-sdl \
40     --with-sdl-gfx \
41     --with-sdl-gl \
42     --with-alsa \
43     --enable-bsdsock \
44     --enable-drvsnd \
45     --with-qt
46   make
47   make DESTDIR="$pkgdir" install