1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/tkey-ssh-agent/APKBUILD
2025-05-11 17:42:12 +02:00

38 lines
1.4 KiB
Text

# Maintainer: omni <omni+alpine@hack.org>
maintainer="omni <omni+alpine@hack.org>"
pkgname=tkey-ssh-agent
pkgver=1.0.0
pkgrel=5
pkgdesc="SSH Agent for TKey, a flexible open hardware/software USB security key"
url="https://www.tillitis.se/"
# loongarch64 limited by https://github.com/creack/goselect v0.1.2
arch="all !loongarch64"
license="GPL-2.0-only"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tillitis/tkey-ssh-agent/archive/refs/tags/v$pkgver.tar.gz
no-systemd.patch
unset_cgo_enabled.patch
"
options="net" # golang needs to fetch modules
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
# TODO: package tkey-libs & tkey-device-signer to build signer.bin from source
build() {
make
}
package() {
make SYSTEMDDIR=/dev/null PREFIX=/usr DESTDIR="$pkgdir/" install
}
sha512sums="
061ac0ce64139d8837b684c822ae1452fbe7fa67dd905198e081f02ef4d6e9ec78bbf19c1577b853468717950a9476f9e93bf5d021d59be737621fe9afb5ed51 tkey-ssh-agent-1.0.0.tar.gz
2b152ab12df4cf8a492498c1c15f06a2a0425299905a7d86e3a65074583585cc1be7e96e63fd449601923b13564f628326fc3d3cc70108085f41f305ef816c6f no-systemd.patch
3b34c17161c0b6904421bc8a0943e143f72e0af56f3ac322b6ae5a006f073ae150dda08b24553417bc6c208d58e1f45ac5e6dadca9141e1ff0ebc204f52fc045 unset_cgo_enabled.patch
"