2 # Maintainer: Jens Staal <staal1978@gmail.com>
7 pkgdesc="A re-implementation of *NIX and 9base/plan9port utilities written in Go"
9 url="http://repo.cat-v.org/goblin/"
11 makedepends=('git' 'go')
12 source=('config64.patch' 'touch64.patch')
13 md5sums=('71b4d01f103140a9bb7294fce2e14d45' '8427b1f7b7dad442cce819934fef92e0')
15 _gitroot=('git://github.com/jdparent/goblin.git')
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull $_gitroot
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
34 cp -ar "$srcdir/$_gitname" $srcdir/build
36 if [ ${CARCH}=x86_64 ]
38 patch $srcdir/build/config.mk -i $srcdir/config64.patch
39 patch $srcdir/build/touch/touch.go -i $srcdir/touch64.patch
52 make DESTDIR=$pkgdir/opt/ PREFIX=goblin install
54 install -Dm644 $srcdir/build/LICENSE $pkgdir/usr/share/licenses/goblin/LICENSE