mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 19:22:10 +01:00
35 lines
892 B
Plaintext
35 lines
892 B
Plaintext
# Contributor: Francesco Camuffo <dev@fmac.xyz>
|
|
# Maintainer: Francesco Camuffo <dev@fmac.xyz>
|
|
pkgname=up
|
|
pkgver=0.4
|
|
pkgrel=18
|
|
pkgdesc="Ultimate Plumber is a tool for writing Linux pipes with instant live preview"
|
|
url="https://github.com/akavel/up"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/akavel/up/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -o bin/$pkgname
|
|
}
|
|
|
|
check() {
|
|
go test
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
|
|
}
|
|
|
|
cleanup_srcdir() {
|
|
go clean -modcache
|
|
default_cleanup_srcdir
|
|
}
|
|
|
|
sha512sums="f9032decec6f2288a50c91fbc25d76fb572e8942f035382067fdad79dd319fb42251d6b0df0d65d1eb9a9632b8431122951a4509c06dae759def3075014dcdd0 up-0.4.tar.gz"
|