updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / snes9x-libsnes-git / PKGBUILD
bloba409c566ed66109eb29eaa2ed2ef74f19cc1044e
1 # Maintainer: Darren Alton <dalton at stevens point edu>
2 pkgname=snes9x-libsnes-git
3 pkgver=20110525
4 pkgrel=1
5 pkgdesc="An implementation of libsnes using the SNES9x core."
6 url="https://github.com/Themaister/snes9x-libsnes/"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 depends=('gcc-libs')
10 makedepends=('intltool' 'nasm' 'git')
11 optdepends=('ssnes-git: simple frontend for libsnes')
12 source=()
13 md5sums=()
15 _gitroot="git://github.com/Themaister/snes9x-libsnes.git"
16 _gitname="snes9x-libsnes"
18 build() {
19   cd "${srcdir}/"
21   msg "Connecting to the GIT server...."
23   if [[ -d "$srcdir/$_gitname" ]] ; then
24     cd "$_gitname"
25     git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot"
29   fi
31   cd "${srcdir}/${_gitname}/unix"
33   ./configure || return 1
34   make || return 1
35   mkdir -p "${pkgdir}/usr/lib"
36   install -m 755 libsnes.so "${pkgdir}/usr/lib/libsnes-snes9x.so" || return 1