updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / invedit-git / PKGBUILD
blob7f9bf87cee643990e2f7f04b90d2a032e65ed122
1 # Maintainer: Stefan Seemayer <mail@semicolonsoftware.de>
2 pkgname=invedit-git
3 pkgver=20111004
4 pkgrel=2
5 pkgdesc="Minecraft Inventory Editor"
6 arch=(any)
7 url="http://www.minecraftforum.net/topic/14190-invedit/"
8 license=('GPL')
9 groups=()
10 depends=( mono )
11 makedepends=('git')
12 provides=()
13 conflicts=( invedit )
14 replaces=()
15 backup=()
16 options=()
17 install=invedit.install
18 source=(http://copy.mcft.net/mc/INVedit/INVedit.zip invedit.desktop)
19 noextract=()
20 md5sums=('5a2aabe7de5579a297d4b180ef6f41bf'
21          '8a74dfee530af3181a8c3b0ec50cf4b7')
23 _gitroot="git://github.com/copyboy/INVedit.git"
24 _gitname="invedit"
26 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
30   if [ -d $_gitname ] ; then
31     cd $_gitname && git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot $_gitname
35   fi
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
46   #
47   # BUILD HERE
48   #
50   xbuild || exit 1
54 package() {
55   cd "$srcdir/$_gitname-build/bin/Debug/"
56   
57   mkdir -p $pkgdir/usr/{bin,share/{pixmaps,applications,invedit}}
58   install -Dm755 "INVedit.exe" "NBT.dll" "$pkgdir/usr/share/invedit/"
59   
60   cd "$srcdir/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"
67