[arch-commits] Commit in libnitrokey/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Fri Apr 29 18:22:24 UTC 2022
Date: Friday, April 29, 2022 @ 18:22:23
Author: dvzrv
Revision: 444304
upgpkg: libnitrokey 3.7-1: Upgrade to 3.7.
Remove unneeded prepare().
Simplify calls to cmake, ctest and make.
Modified:
libnitrokey/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-29 17:29:30 UTC (rev 444303)
+++ PKGBUILD 2022-04-29 18:22:23 UTC (rev 444304)
@@ -3,7 +3,7 @@
# Contributor: Étienne Deparis <etienne at depar.is>
pkgname=libnitrokey
-pkgver=3.6
+pkgver=3.7
pkgrel=1
pkgdesc='Communicate with Nitrokey stick devices in a clean and easy manner'
url='https://www.nitrokey.com'
@@ -13,33 +13,27 @@
makedepends=('cmake' 'qt5-tools' 'catch2')
provides=('libnitrokey.so')
source=(https://github.com/Nitrokey/libnitrokey/releases/download/v${pkgver}/libnitrokey-v${pkgver}.tar.gz{,.sig})
-sha512sums=('4ffc465f9c6b7ee672d0d2aa8bfaa891f939816513f5d400e8156316e6708306c62ce9abb9ca55d3467bcc53e8c1203c57b2f5f16e046dd322c89cdec1740b3c'
+sha512sums=('1f9c689a64b99aef8b683c0bca0e0c8b07b51008c18a884571f0c38d1b73deac0d1067f6b93fc7181226655005828299662e75ec0885eaeeca1a5023de2348eb'
'SKIP')
+b2sums=('42afdd903491d24fad80bbaf60efff8b22177aadf1b1b3d9c1c65ba981fe3313c9f5a3140bb4fef59629681537860c899a6bbfca330304afaaf16961f93ba619'
+ 'SKIP')
validpgpkeys=('868184069239FF65DE0BCD7DD9BAE35991DE5B22') # Szczepan Zalega <szczepan.zalega at gmail.com>
-prepare() {
- cd ${pkgname}-v${pkgver}
- sed '/REQUIRE(std::regex_match(s, pattern));/d' -i unittest/test_offline.cc
-}
-
build() {
- cd ${pkgname}-v${pkgver}
- cmake . \
- -B build \
+ cmake -B build \
-DBUILD_SHARED_LIBS=ON \
-DCOMPILE_OFFLINE_TESTS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -S $pkgname-v$pkgver
make -C build VERBOSE=1
}
check() {
- cd ${pkgname}-v${pkgver}/build
- ctest -VV
+ ctest -VV --test-dir build
}
package() {
- cd ${pkgname}-v${pkgver}
make -C build DESTDIR="${pkgdir}" install
}
More information about the arch-commits
mailing list