updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / reggie-git / PKGBUILD
blob3199b67df8fd38323758a6f58a01bc594056f79d
1 # Contributer: Matthew Bauer <mjbauer95@gmail.com>
2 __pkgname=Reggie
3 _pkgname=reggie
4 pkgname=$_pkgname-git
5 pkgver=20100328
6 pkgrel=2
7 pkgdesc="Reggie! is an easy-to-use and full-featured level editor for New Super Mario Bros. Wii, created by Treeki and Tempus. (nsmbwii)"
8 arch=(any)
9 url="http://rvlution.net/$_pkgname/"
10 license=('custom')
11 depends=('python')
12 source=('reggie')
13 md5sums=('f2788d2c556bf37472a6eabf3f139344')
14 provides=("$_pkgname")
15 conflicts=("$_pkgname")
17 _gitroot="git://github.com/Treeki/Reggie.git"
18 _gitname="$__pkgname"
20 build() {
21         cd "$srcdir"
23         mkdir -p "$pkgdir/usr/bin"
24         cp reggie "$pkgdir/usr/bin/$_pkgname"
25         chmod +x "$pkgdir/usr/bin/$_pkgname"
27         msg "Connecting to GIT server...."
29         if [ -d $_gitname ] ; then
30                 cd $_gitname && git pull origin
31                 msg "The local files are updated."
32         else
33                 git clone $_gitroot $_gitname
34         fi
36         msg "GIT checkout done or server timeout"
37         msg "Starting make..."
39         rm -rf "$srcdir/$_gitname-build"
40         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41         cd "$srcdir/$_gitname-build"
43         mkdir -p "$pkgdir/usr/share/$_pkgname"
44         cp -r common.py $_pkgname.py reggieextras archive.py license.txt lz77.py readme.txt reggiedata sprites.py "$pkgdir/usr/share/$_pkgname"