mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 21:12:27 +01:00
31 lines
778 B
Plaintext
31 lines
778 B
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=gops
|
|
pkgver=0.3.19
|
|
pkgrel=0
|
|
pkgdesc="List and diagnose Go processes currently running on your system"
|
|
url="https://github.com/google/gops"
|
|
license="BSD-3-Clause"
|
|
arch="all"
|
|
makedepends="go"
|
|
source="https://github.com/google/gops/archive/v$pkgver/gops-$pkgver.tar.gz"
|
|
|
|
export GOPATH="$srcdir"
|
|
export GOFLAGS="$GOFLAGS -trimpath -modcacherw"
|
|
|
|
build() {
|
|
go build -ldflags "-s -w" -v -o bin/$pkgname
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
01dbc47c9f70546fa58f532a4af20ca60b149db13dfef4f6aae7cdde0ef88db5cc85b5684f548149a7aaeac4b0a0fcbf208f2fa7ac20419ef2d513b571fcccf6 gops-0.3.19.tar.gz
|
|
"
|