feat: add himitsu
This commit is contained in:
parent
e52f9cc75c
commit
b0cda31ed1
38
himitsu/PKGBUILD
Normal file
38
himitsu/PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Maintainer: Louis Dalibard <ontake@ontake.dev>
|
||||||
|
_pkgbase="himitsu"
|
||||||
|
pkgname="$_pkgbase-git"
|
||||||
|
pkgver=r3.ge06764a
|
||||||
|
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=()
|
||||||
|
makedepends=('go>=1.18')
|
||||||
|
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() {
|
||||||
|
cd ${srcdir}/${_pkgbase}
|
||||||
|
echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/${_pkgbase}"
|
||||||
|
go mod tidy
|
||||||
|
go build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "${srcdir}/${_pkgbase}/${_pkgbase}" "${pkgdir}"/usr/bin/${_pkgbase}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user