mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 12:54:32 +02:00
43 lines
1.7 KiB
Text
43 lines
1.7 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=yubikey-touch-detector
|
|
pkgver=1.12.5
|
|
pkgrel=3
|
|
pkgdesc="Tool to detect when your YubiKey is waiting for a touch"
|
|
url="https://github.com/maximbaz/yubikey-touch-detector"
|
|
arch="all"
|
|
license="ISC"
|
|
depends="gpgme"
|
|
makedepends="go gpgme-dev scdoc"
|
|
# Note: SVG image is based on https://github.com/Yubico/yubioath-desktop/blob/main/images/touch.svg.
|
|
source="https://github.com/maximbaz/yubikey-touch-detector/archive/$pkgver/yubikey-touch-detector-$pkgver.tar.gz
|
|
yubikey-touch-detector.svg
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
# !check: no tests provided
|
|
# net: needed for fetching go dependencies
|
|
options="!check net"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -o yubikey-touch-detector -tags=netcgo -v
|
|
scdoc < yubikey-touch-detector.1.scd > yubikey-touch-detector.1
|
|
}
|
|
|
|
package() {
|
|
install -Dm 755 yubikey-touch-detector -t "$pkgdir"/usr/bin/
|
|
install -Dm 644 yubikey-touch-detector.1 -t "$pkgdir"/usr/share/man/man1/
|
|
install -Dm 644 service.conf.example -t "$pkgdir"/usr/share/doc/$pkgname/
|
|
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
|
|
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
install -Dm 644 "$srcdir"/yubikey-touch-detector.svg -t "$pkgdir"/usr/share/pixmaps/
|
|
}
|
|
|
|
sha512sums="
|
|
0773263c694355541f64d9d2106c23d5a027d98a3aefce9b384b3247a1159c55bd00cbd1ae9ba91f7ba92e183e568fb952a2fe0b521887404eccd85600ac0e62 yubikey-touch-detector-1.12.5.tar.gz
|
|
4b37793b5ab01391ddc808d8a4cd1650f0fb971e582883f7ef9954d9c72d4f9968f0a32fed311fafaa08c5fc0f1880e25dbf2be698cb312ca8be3f8aac27998b yubikey-touch-detector.svg
|
|
"
|