summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20f169e59a88044e62d555344d08acd45373863b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: sg3des <sg3des@gmail.com>

pkgname=goatee
pkgver=0.9
pkgrel=4
pkgdesc='lightwieght gtk2 text/hex editor written on Go'
arch=('i686' 'x86_64')
url='https://github.com/sg3des/goatee'
license=('GPL')
depends=('gtk2' 'gtksourceview2')
makedepends=('git' 'go')
source=("git://github.com/sg3des/goatee.git")
md5sums=('SKIP')

build() {
	echo $srcdir

	export GOPATH="$srcdir"
	mkdir -p $GOPATH/src/github.com/sg3des
	rm -rf $GOPATH/src/github.com/sg3des/$pkgname
	mv $srcdir/$pkgname $GOPATH/src/github.com/sg3des/



	cd $GOPATH/src/github.com/sg3des/$pkgname

	mkdir -p vendor/github.com/mattn
	cd vendor/github.com/mattn
	git clone https://github.com/sg3des/go-gtk

	cd $GOPATH/src/github.com/sg3des/$pkgname

	go get -v ./...
	go build -v -o $pkgname
}

package() {
	cd "$GOPATH/src/github.com/sg3des/$pkgname"
	install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
	install -Dm755 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
}