mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 23:06:40 +02:00
30 lines
977 B
Text
30 lines
977 B
Text
# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
|
|
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
|
|
pkgname=goshs
|
|
pkgver=1.0.2
|
|
pkgrel=2
|
|
pkgdesc="A SimpleHTTPServer written in Go, enhanced with features and with a nice design."
|
|
url="https://goshs.de"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/patrickhener/goshs/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net !check" # no tests provided
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -ldflags="-s -w"
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "$builddir/goshs" -t "$pkgdir/usr/bin/"
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
2d21bddb7f3f22878250f54e082dae642a52f5d4da20c9c76f7740e2a873720c79d9846c4fdedebae04a95f6b9dba040b2edf272bfeedd81b279a7853f029566 goshs-1.0.2.tar.gz
|
|
"
|