Package Details: libcotp 3.0.0-1

Git Clone URL: https://aur.archlinux.org/libcotp.git (read-only, click to copy)
Package Base: libcotp
Description: C library that generates TOTP and HOTP
Upstream URL: https://github.com/paolostivanin/libcotp
Keywords: hotp totp
Licenses: Apache
Submitter: polslinux
Maintainer: polslinux (KingofToasters)
Last Packager: polslinux
Votes: 8
Popularity: 0.000135
First Submitted: 2017-04-23 16:34 (UTC)
Last Updated: 2023-12-13 09:29 (UTC)

Latest Comments

xiota commented on 2023-12-18 05:51 (UTC) (edited on 2023-12-18 05:56 (UTC) by xiota)

pacman appears to have some checks to prevent broken packages after upgrades. To use it, from what I can tell, put libcotp.so in provides for this package.

Then add libcotp.so to depends of otpclient.

Then on upgrade attempt, pacman should display an error like the following:

:: installing libcotp (3.0.0-1) breaks dependency 'libcotp.so=2-64' required by otpclient

polslinux commented on 2023-11-29 09:52 (UTC)

thanks, done

stasadev commented on 2023-11-29 09:50 (UTC)

Oh, I had to rebuild otpclient and now everything is working again. I think otpclient just needs a bump.

stasadev commented on 2023-11-29 09:47 (UTC)

Hi @polslinux, after upgrade 2.0.0-1 => 2.1.0-1 for libcopt, otpclient generates not valid TOTP codes (the code looks OK, but not valid), I temporarily downgraded to 2.0.0-1

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 2255c2637e9ccd3f04350e20088c6dcc5b77d021 Mon Sep 17 00:00:00 2001
From: Daniil Kovalev <daniil@kovalev.website>
Date: Thu, 24 Nov 2022 17:15:47 +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 3e8a269..e3906d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,10 +19,10 @@ build() {
     cd "$pkgname-$pkgver"
     mkdir build && cd build
     cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
-    make
+    cmake --build . --target all
 }

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

polslinux commented on 2021-03-30 18:06 (UTC)

fixed

Max1Truc commented on 2021-03-30 16:53 (UTC)

Seems like the SHA256 sum isn't right.

polslinux commented on 2018-10-07 17:55 (UTC)

libcotp can be updated to v1.2.1 only when OTPClient 1.3.0 will be released (Oct 2018).