aboutsummaryrefslogtreecommitdiffstats
path: root/testing/viddy/APKBUILD
blob: 5d9e8239a196f78c5c73618cf4465aa9d7599b30 (plain) (blame)
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.1
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="
66b1a03055d1ce1282e31d57eee78959e5c3f6ca2b0c483759069eb5fad8146e0751713994b1f29755d1ec8868841803320499dd3f87e1a3b010327fa0a43132  viddy-0.2.1.tar.gz
"