blob: 62e6a0e3efad14633b030da28e77a695ed405a4d (
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
|
# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
pkgname=go-goopt
pkgver=1
pkgrel=1
pkgdesc='A getopt-like processor of command-line flags.'
arch=(i686 x86_64)
url='https://github.com/droundy/goopt'
license=('GPL')
depends=(bash)
makedepends=(git go)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
noextract=()
_gourl='github.com/droundy/goopt'
build(){
cd "$srcdir"
GOPATH="$srcdir" go get -v -x ${_gourl}/...
}
check() {
cd "$srcdir"
GOPATH="$srcdir" go test -v -x ${_gourl}/...
}
package(){
cd "$srcdir"
source /etc/profile.d/go.sh
mkdir -p "$pkgdir"/$GOPATH
cp -R --preserve=timestamps ${srcdir}/{src,pkg} "${pkgdir}/$GOPATH"
}
|