aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tut/APKBUILD
blob: 3840d4156687ee09e50fa1242f67cfd9d5db6935 (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
29
30
31
# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=tut
pkgver=0.0.29
pkgrel=0
pkgdesc="TUI for Mastodon"
url="https://github.com/RasmusLindroth/tut"
arch="all"
license="MIT"
makedepends="go"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/RasmusLindroth/tut/archive/refs/tags/0.0.29.tar.gz
"
options="net !check" # no tests

export GOPATH="$srcdir/go"
export GOFLAGS="$GOFLAGS -modcacherw -trimpath"

build() {
	cd "$builddir"
	go build $GOFLAGS -o tut
}

package() {
	cd "$builddir"
	install -D -m755 tut "$pkgdir"/usr/bin/tut
}

sha512sums="
487ca2b51eb8349d621da09f43f3797ff9f62e51a15793cb8ec290fd0da4be38b42a4e283442c70573b75036f33eab3aa32f1cf217809a1c1aef4b37053bf375  tut-0.0.29.tar.gz
"