aur/himitsu/PKGBUILD

39 lines
793 B
Bash
Raw Normal View History

2024-04-28 22:11:21 +02:00
# Maintainer: Louis Dalibard <ontake@ontake.dev>
2024-08-25 12:58:46 +02:00
_pkgbase="ontake-himitsu"
2024-04-28 22:11:21 +02:00
pkgname="$_pkgbase-git"
2024-08-25 12:58:46 +02:00
pkgver=r10.g1840670
2024-04-28 22:11:21 +02:00
pkgrel=1
pkgdesc="A tiny command line 2FA TOTP client."
arch=("x86_64" "armv7h" "aarch64")
url="https://git.ontake.dev/go/himitsu"
license=('GPL3')
groups=()
depends=()
2024-08-27 21:40:44 +02:00
makedepends=('go>=1.18' 'git')
2024-04-28 22:11:21 +02:00
optdepends=()
provides=("$_pkgbase")
conflicts=("$_pkgbase")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://git.ontake.dev/go/himitsu")
noextract=()
md5sums=("SKIP") #autofill using updpkgsums
pkgver() {
2024-05-02 22:04:53 +02:00
cd ${srcdir}/himitsu
2024-04-28 22:11:21 +02:00
echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
2024-05-02 22:04:53 +02:00
cd "${srcdir}/himitsu"
2024-04-28 22:11:21 +02:00
go mod tidy
go build
}
package() {
2024-08-25 12:58:46 +02:00
install -Dm755 "${srcdir}/himitsu/himitsu" "${pkgdir}"/usr/bin/ohimitsu
2024-04-28 22:11:21 +02:00
}