blob: c8b6c1230fc2bdb4016fef1db7d17d975e7933fd (
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
|
# Maintainer : Ivo(sh) Musil <ivoshm@gmail.com>
pkgname=gucci
pkgdesc='A simple CLI templating tool written in golang.'
pkgver=1.5.4
pkgrel=2
url="https://github.com/noqcks/${pkgname}"
license=('MIT')
arch=('x86_64')
makedepends=('go')
depends=('glibc')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=("ce12828a9fb70933d5962825ad54c11995439c732ecab7c690940b13954eeb03c518549529cb353c2f999eb156e2a1f65610edd9ff5de941411abd4c7a93531d")
build() {
export GO11MODULE=on
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "${pkgname}-${pkgver}"
go build -ldflags "-X main.AppVersion=${pkgver}" -o "${pkgname}.bin"
}
package () {
cd "${pkgname}-${pkgver}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 gucci.bin "${pkgdir}/usr/bin/${pkgname}"
}
|