1 # Maintainer: Stefan Seemayer <mail@semicolonsoftware.de>
5 pkgdesc="Minecraft Inventory Editor"
7 url="http://www.minecraftforum.net/topic/14190-invedit/"
17 install=invedit.install
18 source=(http://copy.mcft.net/mc/INVedit/INVedit.zip invedit.desktop)
20 md5sums=('5a2aabe7de5579a297d4b180ef6f41bf'
21 '8a74dfee530af3181a8c3b0ec50cf4b7')
23 _gitroot="git://github.com/copyboy/INVedit.git"
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
34 git clone $_gitroot $_gitname
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
44 sed -i".bak" -e 's/this\.btnUpdate,/\/\/this.btnUpdate/g' MainForm.Designer.cs
55 cd "$srcdir/$_gitname-build/bin/Debug/"
57 mkdir -p $pkgdir/usr/{bin,share/{pixmaps,applications,invedit}}
58 install -Dm755 "INVedit.exe" "NBT.dll" "$pkgdir/usr/share/invedit/"
61 install -m644 "items.txt" "items.png" "special.png" "terrain.png" "$pkgdir/usr/share/invedit/"
63 echo -e "#!/bin/bash\nmono /usr/share/invedit/INVedit.exe" > "$pkgdir/usr/bin/invedit" && chmod 755 "$pkgdir/usr/bin/invedit"
65 install -Dm644 "$srcdir/$_gitname-build/icon.png" "$pkgdir/usr/share/pixmaps/invedit.png"
66 install -Dm644 "$srcdir/invedit.desktop" "$pkgdir/usr/share/applications/invedit.desktop"