mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-12 00:51:51 +01:00
37 lines
976 B
Plaintext
37 lines
976 B
Plaintext
# Contributor: Tuan Anh Tran <me@tuananh.org>
|
|
# Maintainer: Tuan Anh Tran <me@tuananh.org>
|
|
pkgname=nom
|
|
pkgver=2.6.1
|
|
pkgrel=0
|
|
pkgdesc="RSS reader for the terminal"
|
|
url="https://github.com/guyfedwards/nom"
|
|
arch="all"
|
|
depends="glow"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/guyfedwards/nom/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/nom-$pkgver/"
|
|
|
|
export GOFLAGS="$GOFLAGS -modcacherw"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
msg "Building nom"
|
|
go build -o nom cmd/nom/main.go
|
|
}
|
|
|
|
check() {
|
|
go test -v ./internal/...
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 nom -t "$pkgdir"/usr/bin/
|
|
install -Dm644 -t "$pkgdir"/usr/share/doc/"$pkgname" README.md
|
|
}
|
|
|
|
sha512sums="
|
|
51b2c6ed237b3059a3931ef31434c06d7dbc4dab68578fb781e5f4de8b700a532fd7761a06ad0c6855dcb1e5a8d2ac5494c0281948138c76a62956d5098d3482 nom-2.6.1.tar.gz
|
|
"
|