updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / mcobj-git / PKGBUILD
blobf361274ecb31662375259d3999d08fedf595ae4e
1 # Maintainer: Andrew Black <agwblack at gmail dot com>
2 pkgname=mcobj-git
3 pkgver=20110613
4 pkgrel=1
5 pkgdesc="exports minecraft worlds to .obj or .prt -- git pull"
6 arch=(i686 x86_64)
7 url="https://github.com/quag/mcobj"
8 license=('BSD')
9 depends=()
10 makedepends=(go make)
11 optdepends=(minecraft)
12 conflicts=(mcobj)
13 options=(!strip)
14 source=(mcobj.1)
15 md5sums=('6dda728366d8fc4637541dedcdee96db')
18 _gitroot="git://github.com/quag/mcobj.git"
19 _gitname="mcobj"
21 build() {
23         cd "$srcdir"    
24         git clone "$_gitroot"
25         cd "$_gitname"
26         export GOROOT=/usr/lib/go
27         chmod +x build.sh
28         ./build.sh
32 package() {
34         mkdir -p "$pkgdir/usr/share/mcobj"      
35         mkdir -p "$pkgdir/usr/bin"
37         cd "$srcdir/$_gitname"
39         install -Dm0755 mcobj "$pkgdir/usr/share/mcobj/" 
40         install -Dm0644 blocks.json "$pkgdir/usr/share/mcobj/"
42         cd ../../
43         install -Dm0755 mcobj.1 "$pkgdir/usr/bin/mcobj"