mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-08 09:21:30 +01:00
go 1.16 defaults to go modules, so just provide one, so that we know dependencies are deterministic.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
pkgname=secsipidx
|
|
pkgver=1.0.0
|
|
pkgrel=1
|
|
pkgdesc="Secure SIP/Telephony Identity Extensions"
|
|
url="https://github.com/asipto/secsipidx"
|
|
arch="all !mips64" # go
|
|
license="GPL-2.0-only"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/asipto/secsipidx/archive/v1.0.0.tar.gz
|
|
go.mod
|
|
go.sum
|
|
"
|
|
|
|
export GOPATH="$srcdir/go"
|
|
export GOCACHE="$srcdir/go-build"
|
|
export GOTEMPDIR="$srcdir/go"
|
|
|
|
export GOFLAGS="$GOFLAGS -modcacherw"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cp "$srcdir/go.mod" .
|
|
cp "$srcdir/go.sum" .
|
|
}
|
|
|
|
build() {
|
|
go build -v
|
|
}
|
|
|
|
check() {
|
|
./secsipidx -version | grep -q "v$pkgver"
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 secsipidx "$pkgdir"/usr/bin/secsipidx
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
38855cf0b511c638063daacde040083638f7a53f31366d3df3b4c37d7d29e784f7e352bf4f194f99cab2eacf9308bed207a22b2ec1bfd0d843658f9d1664c997 secsipidx-1.0.0.tar.gz
|
|
d6f60c25ddbb6cd3a3417497f8468722f714ea06285f5de8b77ea574f30b2b4908ff52c2e95d02fff652a21457c3c31433f4db083f5369fa23d4d08cf537633a go.mod
|
|
236db275d23a0fb1a2492b5a3b017b7c07e2a70e002e87e1d279b034030f1def50f6f1171925b3b8e3db3e3af653e6dbfc3732e37b11ff9e35676daf4a898bf6 go.sum
|
|
"
|