summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8081225df4a71e0142374f2968f4edeeda75c56d (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
# Maintainer: GustavoWidman <gustavowidman@gmail.com>

pkgname=passmake
pkgver=1.0.0
pkgrel=1
pkgdesc="A simple password generator written in Go."
arch=('any')
url="https://github.com/GustavoWidman/passmake"
license=('CC0')
depends=()
makedepends=('go' 'git')
options=('!strip' '!debug')

source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

build() {
    cd "$srcdir/$pkgname"

	go mod tidy

	go build -o "$srcdir/$pkgname/passmake" -ldflags "-s -w" ./src/main.go

	rm -f go.mod go.sum
}

package() {
	install -Dm755 "$srcdir/$pkgname/passmake" "$pkgdir/usr/bin/passmake"
}