[arch-commits] Commit in pass-otp/trunk (PKGBUILD otp_algorithm-is-lowercase.patch)

Morten Linderud foxboron at archlinux.org
Wed Mar 7 18:54:25 UTC 2018


    Date: Wednesday, March 7, 2018 @ 18:54:24
  Author: foxboron
Revision: 304114

upgpkg: pass-otp 1.1.0-1

Updated to 1.1.0

Modified:
  pass-otp/trunk/PKGBUILD
Deleted:
  pass-otp/trunk/otp_algorithm-is-lowercase.patch

----------------------------------+
 PKGBUILD                         |   14 ++++----------
 otp_algorithm-is-lowercase.patch |   24 ------------------------
 2 files changed, 4 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-07 18:11:09 UTC (rev 304113)
+++ PKGBUILD	2018-03-07 18:54:24 UTC (rev 304114)
@@ -2,8 +2,8 @@
 # Contibutor: Alexandre Pujol <alexandre at pujol.io>
 
 pkgname='pass-otp'
-pkgver=1.0.0
-pkgrel=3
+pkgver=1.1.0
+pkgrel=1
 pkgdesc='A pass extension for managing one-time-password (OTP) tokens.'
 arch=('any')
 url='https://github.com/tadfisher/pass-otp'
@@ -11,15 +11,9 @@
 depends=('pass'
          'oath-toolkit'
 	 'qrencode')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tadfisher/pass-otp/archive/v${pkgver}.tar.gz"
-	"otp_algorithm-is-lowercase.patch")
-sha256sums=('ed409b50c417814f9feed913bb4c09916a10f635404a6d8c2f4e842319c58052'
-            'b6a3ca22b8efcd7936e4c48fdde8b3ff50a7ff6497be001a04632fd823ad2293')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tadfisher/pass-otp/archive/v${pkgver}.tar.gz")
+sha256sums=('3971467475f8ed573eb860c7a44bd268d464d169dddbc0a4da89232d5beee144')
 
-prepare(){
-  cd "${pkgname}-${pkgver}"
-  patch -Np1 -i "${srcdir}/otp_algorithm-is-lowercase.patch"
-}
 
 package() {
   cd "${pkgname}-${pkgver}"

Deleted: otp_algorithm-is-lowercase.patch
===================================================================
--- otp_algorithm-is-lowercase.patch	2018-03-07 18:11:09 UTC (rev 304113)
+++ otp_algorithm-is-lowercase.patch	2018-03-07 18:54:24 UTC (rev 304114)
@@ -1,24 +0,0 @@
-From 6ff06cc7f17e0ea1af88e6d295c9bfa35933adfd Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?=
- <Barthalion at users.noreply.github.com>
-Date: Sun, 4 Jun 2017 23:30:09 +0200
-Subject: [PATCH] Make sure $otp_algorithm is lowercase (#33)
-
-Otherwise oathtool is unhappy.
----
- otp.bash | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/otp.bash b/otp.bash
-index c46954e..95f171a 100755
---- a/otp.bash
-+++ b/otp.bash
-@@ -243,7 +243,7 @@ cmd_otp_code() {
-   case "$otp_type" in
-     totp)
-       cmd="$OATH -b --totp"
--      [[ -n "$otp_algorithm" ]] && cmd+="=$otp_algorithm"
-+      [[ -n "$otp_algorithm" ]] && cmd+="=${otp_algorithm,,}"
-       [[ -n "$otp_period" ]] && cmd+=" --time-step-size=$otp_period"s
-       [[ -n "$otp_digits" ]] && cmd+=" --digits=$otp_digits"
-       cmd+=" $otp_secret"



More information about the arch-commits mailing list