blob: 0ccf4fb54bb0c0ad0679f095ddbd171519897fe7 (
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
38
|
# Maintainer: jon4hz me@jon4hz.io
pkgname=aaregurucli-git
pkgver=0.4.3.r12.g2e5e424
pkgrel=1
pkgdesc="aare.guru CLI "
arch=(x86_64)
url="https://github.com/gexclaude/aaregurucli"
license=('GPL3')
depends=(glibc)
makedepends=(go git)
provides=(aaregurucli)
conflicts=(aaregurucli)
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd aaregurucli
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd aaregurucli
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
.
}
package() {
cd aaregurucli
install -Dm755 aaregurucli "${pkgdir}"/usr/bin/aaregurucli
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/{pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/{pkgname}/README.md"
}
|