blob: 8764d948d7607f83ca5039828284fcce25772202 (
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
|
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
pkgname=go-json-gold
pkgver=r30.2e54481
pkgrel=1
pkgdesc="An implementation of the JSON-LD specification in Go"
arch=('x86_64' 'i686')
url="https://github.com/kazarena/json-gold"
license=('APACHE')
depends=('go')
makedepends=('rsync')
options=('!strip' '!emptydirs')
_gourl='github.com/kazarena/json-gold'
#pkgver() {
# cd "${srcdir}/src/${_gourl}"
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
#}
build() {
GOPATH="${srcdir}" go get -v -x ${_gourl}/...
}
package() {
cd "${srcdir}"
mkdir -p "${pkgdir}/usr/lib/go"
rsync -avz --exclude .git {src,pkg} "${pkgdir}/usr/lib/go"
install -Dm644 "src/${_gourl}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|