blob: 7ba50ea3576930abee60c6506e9811a1efc5f9d7 (
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
|
pkgname=kenbunshoku-haki
pkgver=1.1
pkgrel=1
pkgdesc="Monitor system"
arch=(x86_64)
url="https://github.com/Raissadev/monitor-system"
license=(GPL3)
makedepends=('go')
depends=('glibc')
source=("https://github.com/Raissadev/monitor-system/releases/download/v$pkgver/kenbunshoku-haki-$pkgver.tar.gz")
sha256sums=('4642d4fcbfcd9130bdec03a15da0253cd66b29418ca03ae988f0e942f7399f54')
# Maintainer: Raissa Arcaro Daros <raissa.geek@gmail.com>
prepare() {
mkdir -p "$srcdir/$pkgname-$pkgver"
}
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath"
cd "$srcdir"
go build -o "$srcdir/$pkgname-$pkgver/$pkgname" -ldflags "-X main.version=${pkgver} -X main.buildDate=$(date +%Y-%m-%d)"
}
package() {
install -Dm755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir"/usr/bin/"$pkgname"
rm -rf "$srcdir"
}
|