updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / u8it-git / PKGBUILD
blob04625abb06062c47cadb0c3b2e1da81a224f52eb
1 _pkgname=u8it
2 pkgname=$_pkgname-git
3 pkgver=20100323
4 pkgrel=1
5 pkgdesc="u8it is used for Wii development to unpack .arc files."
6 url="http://github.com/icefire/$_pkgname/tree"
7 license="GPL"
8 arch=('i686' 'x86_64')
9 depends=()
10 makedepends=('git' 'gcc')
11 provides=($_pkgname)
13 _gitroot="git://github.com/icefire/$_pkgname.git"
14 _gitname=$_pkgname
16 build() {
17     cd "$srcdir"
19     msg "Connecting to github.com GIT server...."
21     if [ -d $srcdir/$_gitname ] ; then
22         cd $_gitname && git pull origin
23         msg "The local files are updated."
24     else
25         git clone $_gitroot
26         cd $_gitname
27     fi
29     gcc $_pkgname.c -o u8it
31     mkdir -p $pkgdir/usr/bin
32     cp u8it $pkgdir/usr/bin