updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / arctool-git / PKGBUILD
blobbd4bd49f756fc6a41dd61a8d9b513847e5f1204e
1 __pkgname=ARCTool
2 _pkgname=arctool
3 pkgname=$_pkgname-git
4 pkgver=20100323
5 pkgrel=1
6 pkgdesc="$__pkgname is a Python script that can extract the multitude of different formats found in .arc game files."
7 author='tpwrules'
8 url="http://github.com/$author/$__pkgname/tree"
9 license="GPL"
10 arch=('any')
11 depends=()
12 makedepends=('git' 'python')
13 source=("$_pkgname")
14 provides=($_pkgname)
15 md5sums=('367343085bf2a1179008e2ccd05790e6')
17 _gitroot="git://github.com/$author/$__pkgname.git"
18 _gitname=$__pkgname
20 build() {
21     cd "$srcdir"
23     msg "Connecting to github.com GIT server...."
25     if [ -d $srcdir/$_gitname ] ; then
26         cd $_gitname && git pull origin
27         msg "The local files are updated."
28     else
29         git clone $_gitroot
30         cd $_gitname
31     fi
33     mkdir -p $pkgdir/usr/share/$_pkgname
34     cp * $pkgdir/usr/share/$_pkgname
35     mkdir -p $pkgdir/usr/bin
36     cp ../$_pkgname $pkgdir/usr/bin