1 # Maintainer: Thanasis Georgiou <sakisds@gmx.com>
2 pkgname=mc-nbt-edit-git
5 pkgdesc="A command line editor for Minecraft's NBT files."
7 url="https://github.com/sakisds/mc-nbt-edit"
9 depends=('python' 'python-nbt')
12 _gitroot="git://github.com/sakisds/mc-nbt-edit.git"
13 _gitname="mc-nbt-edit"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
35 mkdir -p $pkgdir/usr/bin
36 mv mc-nbt-edit.py $pkgdir/usr/bin/mc-nbt-edit