4 pkgdesc="This tool is used to dye item graphics used by the Mana client"
5 url="http://doc.manasource.org/tools"
11 _gitroot="git://gitorious.org/mana/mana.git"
16 msg "Connecting to GIT server...."
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
22 git clone $_gitroot $_gitname
25 msg "GIT checkout done or server timeout"
26 msg "Starting make..."
28 rm -rf "$srcdir/$_gitname-build"
29 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30 cd "$srcdir/$_gitname-build"
33 cmake -G "Unix Makefiles"
38 cd "$srcdir/$_gitname-build/tools/dyecmd/src/"
39 mkdir -p $pkgdir/usr/bin/
40 cp ./dyecmd $pkgdir/usr/bin/
41 chmod 775 $pkgdir/usr/bin/dyecmd