summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39d05907e1ec75cf5c8044553d10e7d38c813b85 (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
# Maintainer: Jonathan Wright <jon@than.io>

pkgname=go-bindata-git
pkgver=3.0.7.r72.ga0ff256
pkgrel=2
pkgdesc="Converts any file into managable Go source code - git checkout"
arch=(x86_64)
url="https://github.com/jteeuwen/go-bindata/"
license=(CC0-1.0)

source=("git+https://github.com/jteeuwen/go-bindata.git")
sha256sums=(SKIP)

makedepends=(git go)
provides=(go-bindata-git)
conflicts=(go-bindata)
options=('!strip')

pkgver() {
  cd "go-bindata"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build()
{
	mkdir -p "gopath"
	export GOPATH=$PWD/gopath

	go get github.com/jteeuwen/go-bindata/...
}

package()
{
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/lib

	cp $srcdir/gopath/pkg/linux_amd64/github.com/jteeuwen/go-bindata.a $pkgdir/usr/lib
	cp $srcdir/gopath/bin/go-bindata $pkgdir/usr/bin
}