Package Details: otpclient 4.0.2-1

Git Clone URL: https://aur.archlinux.org/otpclient.git (read-only, click to copy)
Package Base: otpclient
Description: A simple GTK+ v3 TOTP/HOTP client
Upstream URL: https://github.com/paolostivanin/OTPClient
Keywords: gtk3 hotp otp totp
Licenses: GPL3
Provides: otpclient
Submitter: KingofToasters
Maintainer: polslinux
Last Packager: polslinux
Votes: 27
Popularity: 0.004579
First Submitted: 2018-01-26 07:26 (UTC)
Last Updated: 2024-08-07 09:10 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

alesc commented on 2022-12-10 14:15 (UTC) (edited on 2022-12-10 14:16 (UTC) by alesc)

A \ is missing in build(), also in package() I got a "no rule to make target 'install'."

diff --git a/PKGBUILD b/PKGBUILD
index f2493e3..101714c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,12 +20,12 @@ build() {
   cd "$_pkgname-$pkgver"
   mkdir build && cd build
   cmake \
-    -DCMAKE_INSTALL_PREFIX:PATH=/usr
+    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
     -DSHARE_INSTALL_PREFIX:PATH=/usr/share
   make
 }

 package() {
-  cd "$_pkgname-$pkgver/build"
+  cd "$_pkgname-$pkgver"
   make DESTDIR="$pkgdir/" install
 }

spsf64 commented on 2022-12-09 16:16 (UTC)

Error during build: https://pastebin.com/7JX0978c CMake Error: The source directory "/home/ss/Public/otpclient/src/OTPClient-3.0.0/build" does not appear to contain CMakeLists.txt.

kovdan01 commented on 2022-11-24 14:21 (UTC)

Hello @polslinux, thanks for your great software! Please consider using cmake wrappers instead of make commands in PKGBUILD. When a custom CMAKE_GENERATOR environment variable is set, we have to use something like cmake --build . --target all instead of just make. The same applies to make install. I've prepared a patch for that. Would be glad if you apply it using git am to save my credits in commit history. Thanks!

From afbaa7a89ecae08b4685fd3af973fcab9e933fa2 Mon Sep 17 00:00:00 2001
From: Daniil Kovalev <daniil@kovalev.website>
Date: Thu, 24 Nov 2022 17:16:16 +0300
Subject: [PATCH] Use cmake build and install wrappers instead of make ones

In case of custom `CMAKE_GENERATOR` environment variable (e.g. `Ninja`) we
have to use cmake wrappers instead of raw make commands in order to support
different build systems.
---
 PKGBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 9a42d91..c063e8c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,10 +20,10 @@ build() {
   cd "$_pkgname-$pkgver"
   mkdir build && cd build
   cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
-  make
+  cmake --build . --target all
 }

 package() {
   cd "$_pkgname-$pkgver/build"
-  make DESTDIR="$pkgdir/" install
+  cmake --install . --prefix="$pkgdir/usr"
 }
-- 
2.38.1

raul commented on 2022-04-04 10:00 (UTC)

as kido pointed out, download url changed in github and pkgbuild's no longer compatible. (also, there was an asc file that is no longer there with newer release)

tl;dr; just update those lines:

source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('e35d4c004abc523428b9d40f01e18153d87e38073c2bd56ac855ecdcec14d47c')

kido007 commented on 2022-04-03 12:13 (UTC)

wget https://github.com/paolostivanin/OTPClient/releases/download/v2.5.1/v2.5.1.tar.gz.asc => 404 error

DanSman commented on 2022-02-12 00:06 (UTC)

Hey

gtk3 is in conflict with gtk3-mobile on a Pinephone.

AUR package otpclient-git works instead.

Just to let you and others know ;)

polslinux commented on 2021-11-16 19:30 (UTC)

Updated to 2.4.7

polslinux commented on 2021-11-15 13:55 (UTC)

Updated to 2.4.6

polslinux commented on 2021-03-28 08:28 (UTC)

Updated to 2.4.3

polslinux commented on 2020-12-31 07:46 (UTC)

Updated to 2.4.1