mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 10:24:15 +02:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
pkgname=ugm
|
|
pkgver=1.7.0
|
|
pkgrel=2
|
|
pkgdesc="A terminal based UNIX user and group browser"
|
|
url="https://github.com/ariasmn/ugm"
|
|
license="MIT"
|
|
arch="all"
|
|
makedepends="go"
|
|
options="!check" # no test files
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ariasmn/ugm/archive/refs/tags/v$pkgver.tar.gz
|
|
unbump_go.patch
|
|
"
|
|
|
|
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build \
|
|
-ldflags="-linkmode=external -extldflags \"$LDFLAGS\"" \
|
|
-v .
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
4c29d81ab2300b1c56c46ea8183113c468cafd29e340b596f9b188f003f112a5dfeed92c4b9d9473512cbf58e2c79406bfd2e1b1c56ddba4656abc9589b462a3 ugm-1.7.0.tar.gz
|
|
28322b9c15788d95106fe57c51fa6f2f3ecb16f0e6e12b8f576ade51f436a1184a216f9042cf47c941054f7521071b89229d3d99de13edf42caa70acca769bd0 unbump_go.patch
|
|
"
|