aboutsummaryrefslogtreecommitdiffstats
path: root/testing/viddy/APKBUILD
blob: 54c85122d96945745e67d57e26afe3ea8eda44f1 (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
# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=viddy
pkgver=0.2.0
pkgrel=0
pkgdesc="Modern watch command. Time machine and pager etc."
url="https://github.com/sachaos/viddy"
arch="all"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/sachaos/viddy/archive/refs/tags/v$pkgver.tar.gz"

export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	go build -ldflags "-X main.version=$pkgver"
}

check() {
	go test ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/"$pkgname"
}
sha512sums="
8b2a4857ff292d768be08550fbcb0294056384fa1b92a18e39247ff3b003507554fcfad9b7a7108f02f9ec224c1cc5250af3f78fac95d23cc25167ae18fa3d1a  viddy-0.2.0.tar.gz
"