blob: b4467186f2398ecbd91f17529ac351193dceda32 (
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
|
# Maintainer: Fabien LEFEBVRE <contact@d1ceward.com>
pkgname=gliderlabs-sigil
pkgver=0.11.0
pkgrel=3
pkgdesc='Standalone string interpolator and template processor'
arch=('x86_64')
url='https://github.com/gliderlabs/sigil'
license=('BSD')
# a package with the same name exists and provides a binary with the same name
conflicts=('sigil')
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ea46e1e58875a0133ba2e00b1676ae155e753763694d978896816b9d25c82c38')
makedepends=('go')
build() {
cd "sigil-${pkgver}"
# Build executable
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-asmflags=-trimpath=/src -gcflags=-trimpath=/src"
go build -a -ldflags "-s -w -X main.Version=${pkgver}" -o "${pkgname}-build" cmd/sigil.go
}
package() {
cd "sigil-${pkgver}"
install -Dm755 "${pkgname}-build" "${pkgdir}/usr/bin/sigil"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/sigil/LICENSE"
}
|