blob: 17a6de789663164368a6d026a64997f9a79fdcf1 (
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
|
pkgname=bwplotka-bingo
_pkgname=bingo
pkgver=0.8.0
pkgrel=1
pkgdesc='Automated versioning of Go package level binaries'
arch=('x86_64')
url="https://github.com/bwplotka/bingo"
license=('GPL')
makedepends=('go')
conflicts=(bingo)
source=("https://github.com/bwplotka/bingo/archive/v$pkgver.tar.gz")
sha256sums=('bb524d1973e6403706f387e0ee002e6bb258c0875a7d9a63fe386cb0ee961eeb')
build() {
cd "$_pkgname-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -v"
go build -v
}
package() {
cd "$_pkgname-$pkgver"
install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
}
|