mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
32 lines
892 B
Plaintext
32 lines
892 B
Plaintext
# Contributor: omni <omni+alpine@hack.org>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
pkgname=wego
|
|
pkgver=2.2
|
|
pkgrel=0
|
|
pkgdesc="A weather app for the terminal"
|
|
url="https://github.com/schachmat/wego"
|
|
license="ISC"
|
|
arch="all"
|
|
makedepends="go"
|
|
options="!check" # no test files
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/schachmat/wego/archive/refs/tags/$pkgver.tar.gz"
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
80c35be31219cdefb286978d2118309bc0238b49352b861e28b2dac39f49edba8e2c74bfd1d1549d918307584b820345814953cce757d9d42a2191b8cb44cb47 wego-2.2.tar.gz
|
|
"
|