summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71c582807494103347a03dd7b16fef3e06bf0ba6 (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
# Maintainer: Ryan Chan <rycwo at posteo dot net>

pkgname=tmplgen
pkgver="0.1.1"
pkgrel=3
pkgdesc="Basic text template generator"
arch=("x86_64")
url="https://git.sr.ht/~rycwo/tmplgen"
license=(""custom:WTFPL"")
makedepends=("git" "go")
source=("https://git.sr.ht/~rycwo/tmplgen/archive/""$pkgver"".tar.gz")
sha256sums=('1ed8ba57316431ecf4ece6cac09c387aca7c70b04d9c996181eaaf9357ae19b8')

build() {
	cd "$srcdir""/tmplgen-""$pkgver"
	go build -ldflags "-s -w -X main.version=""$pkgver"
}

package() {
	cd "$srcdir""/tmplgen-""$pkgver"
	mkdir -p "$pkgdir""/usr/bin"
	install -m775 tmplgen "$pkgdir""/usr/bin/tmplgen"
	mkdir -p "$pkgdir""/usr/share/licenses/tmplgen"
	install -m644 LICENSE "$pkgdir""/usr/share/licenses/tmplgen/LICENSE"
}