blob: 80850b7937c6c3f7fbf5d1fee46bb60c986a0c14 (
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
|
# Maintainer: database64128 <free122448@hotmail.com>
_pkgname=gibberish-sender-go
pkgname=$_pkgname-git
pkgver=1.1.1.r0.g9572527
pkgrel=1
pkgdesc="Send random gibberish to an endpoint"
arch=('x86_64' 'aarch64')
url="https://github.com/database64128/$_pkgname"
license=('GPL3')
makedepends=('git' 'go')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+$url.git")
b2sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build -ldflags='-s -w -linkmode=external'
}
package() {
cd $pkgname
install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
}
|