updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / nesicide-git / PKGBUILD
blob1abcfdc984c0e6123a9f57e96570603353ffdf19
1 # Maintainer: Franco Tortoriello <franco.tortoriello@gmail.com>
3 pkgname=nesicide-git
4 pkgver=20110511
5 pkgrel=1
6 pkgdesc="IDE for the Nintendo NES"
7 arch=('i686' 'x86_64')
8 url="http://www.nesicide.com"
9 license=('custom')
10 depends=('nesicide-emulator-lib-git' 'qt' 'sdl_sound' 'lua')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 install=
15 source=()
16 md5sums=()
18 _gitroot="git://gitorious.org/nesicide/nesicide.git"
19 _gitname="nesicide"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   qmake
40   sed 's|/usr/local|/usr|' -i Makefile
41   make
44 package() {
45   cd "$srcdir/$_gitname-build"
46   mkdir -p "$pkgdir/usr/bin"
47   make INSTALL_ROOT="$pkgdir" install
48