diff options
-rw-r--r-- | any/pass-otp_fix-hotp-counter-git/PKGBUILD | 30 | ||||
-rw-r--r-- | any/pass-otp_fix-htop-counter-git/PKGBUILD | 21 |
2 files changed, 30 insertions, 21 deletions
diff --git a/any/pass-otp_fix-hotp-counter-git/PKGBUILD b/any/pass-otp_fix-hotp-counter-git/PKGBUILD new file mode 100644 index 0000000..0c2897c --- /dev/null +++ b/any/pass-otp_fix-hotp-counter-git/PKGBUILD @@ -0,0 +1,30 @@ +# Contibutor: Morten Linderud <foxboron@archlinux.org> +# Contibutor: Alexandre Pujol <alexandre@pujol.io> + +pkgname='pass-otp_fix-hotp-counter-git' +pkgver=r136.0447ae4 +pkgrel=2 +# https://github.com/tadfisher/pass-otp/pull/172 +pkgdesc='A pass extension for managing one-time-password (OTP) tokens. With hotp counter fix.' +arch=('any') +url='https://github.com/jorti/pass-otp' +license=('GPL3') +depends=('pass' + 'oath-toolkit' + 'qrencode') +makedepends=('git') +optdepends=('perl-pass-otp') +provides=('pass-otp') +conflicts=('pass-otp') +source=("git+$url.git#branch=fix-hotp-counter") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%_fix-hotp-counter-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/${pkgname%_fix-hotp-counter-git}" + make PREFIX=/usr DESTDIR="${pkgdir}" install +} diff --git a/any/pass-otp_fix-htop-counter-git/PKGBUILD b/any/pass-otp_fix-htop-counter-git/PKGBUILD deleted file mode 100644 index 3867f78..0000000 --- a/any/pass-otp_fix-htop-counter-git/PKGBUILD +++ /dev/null @@ -1,21 +0,0 @@ -# Maintainer: Morten Linderud <foxboron@archlinux.org> -# Contibutor: Alexandre Pujol <alexandre@pujol.io> - -pkgname='pass-otp' -pkgver=1.2.0 -pkgrel=2 -pkgdesc='A pass extension for managing one-time-password (OTP) tokens.' -arch=('any') -url='https://github.com/tadfisher/pass-otp' -license=('GPL3') -depends=('pass' - 'oath-toolkit' - 'qrencode') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tadfisher/pass-otp/archive/v${pkgver}.tar.gz") -sha256sums=('5720a649267a240a4f7ba5a6445193481070049c1d08ba38b00d20fc551c3a67') - - -package() { - cd "${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install -} |