summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c17dcd8375d4d334e79d62a4ca3aa38175c6bf9 (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: Daniel Kuehn <daniel@kuehn.foo>
pkgname=wordgen
pkgver=0.5.0
pkgrel=1
pkgdesc='A CLI random word generator.'
arch=('x86_64')
url='https://github.com/wordgen/cli'
license=('AGPL-3.0-or-later')
makedepends=('go')
options=('!strip' '!debug')
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('6854b1e82023f8111b2940610f558b6c48ac769fefd8e4f7c88210e2e1f326a7')

build() {
	cd "$srcdir/cli-$pkgver"

	go build -o "bin/wordgen" -trimpath -ldflags="-s -w -buildid=" .
}

package() {
	cd "$srcdir/cli-$pkgver"

	install -Dm755 "bin/wordgen" "$pkgdir/usr/bin/wordgen"
	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/wordgen/LICENSE"
}