summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d29f42162a5b0a25f56d713485187def995aa65 (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
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>

pkgname=go-uuid
pkgver=100.f9ab0dc
pkgrel=1
pkgdesc="A pure Go implementation of Universally Unique Identifier (UUID)"
arch=('x86_64' 'i686')
url="https://godoc.org/github.com/satori/go.uuid"
license=('MIT')
depends=('go')
makedepends=('rsync')
options=('!strip' '!emptydirs')
_gourl='github.com/satori/go.uuid'

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"
}