summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe794a8bf564ec0cda38b182932b43fee855e69e (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
# Maintainer: Alessandro "Sgorblex" Clerici

pkgname=gopoggers
pkgver=1.0.0
pkgrel=1
pkgdesc="POGGERS pixelart printer for celebrating accomplishments"
arch=('any')
url="https://github.com/poggeroni/gopoggers"
license=('MIT')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/poggeroni/gopoggers/archive/v$pkgver.tar.gz")
sha256sums=('bd44dcc3aeaccddb13d22cfd4ab7823e7109e3fd6c93285f6972aecd7a3a17b2')

build() {
	cd $srcdir/$pkgname-$pkgver
	export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
	go build -o binary
}

check() {
	cd $srcdir/$pkgname-$pkgver
	./binary
}

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