upgpkg: 1.30.0-2: build from git sources, clean up

This commit is contained in:
Christian Hesse
2025-05-22 12:59:59 +02:00
parent a958a03e2d
commit 94f970c17c
2 changed files with 21 additions and 13 deletions

View File

@@ -1,16 +1,17 @@
pkgbase = pkcs11-helper
pkgdesc = A library that simplifies the interaction with PKCS11 providers for end-user applications using a simple API and optional OpenSSL engine
pkgver = 1.30.0
pkgrel = 1
pkgrel = 2
url = https://github.com/OpenSC/pkcs11-helper
arch = x86_64
license = GPL
license = BSD
makedepends = git
depends = gnutls
depends = nss
depends = openssl
provides = libpkcs11-helper.so
source = https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-1.30.0/pkcs11-helper-1.30.0.tar.bz2
sha256sums = 4c5815ba910cabf26df08d449ca2909daf4538c9899aa7f7fadc61229d3488a9
source = git+https://github.com/OpenSC/pkcs11-helper#tag=pkcs11-helper-1.30.0
sha256sums = 9ad2b74ec2604fa41f87be143b375e82db72a954f99edf8df8ad684ea84f9adf
pkgname = pkcs11-helper

View File

@@ -5,32 +5,39 @@
pkgname=pkcs11-helper
pkgver=1.30.0
pkgrel=1
pkgrel=2
pkgdesc='A library that simplifies the interaction with PKCS11 providers for end-user applications using a simple API and optional OpenSSL engine'
arch=('x86_64')
url='https://github.com/OpenSC/pkcs11-helper'
license=('GPL' 'BSD')
depends=('gnutls' 'nss' 'openssl')
makedepends=('git')
provides=('libpkcs11-helper.so')
source=("https://github.com/OpenSC/${pkgname}/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('4c5815ba910cabf26df08d449ca2909daf4538c9899aa7f7fadc61229d3488a9')
source=("git+https://github.com/OpenSC/${pkgname}#tag=${pkgname}-${pkgver}")
sha256sums=('9ad2b74ec2604fa41f87be143b375e82db72a954f99edf8df8ad684ea84f9adf')
build() {
cd pkcs11-helper-$pkgver
prepare() {
cd "${pkgname}/"
libtoolize
aclocal
autoheader
automake --add-missing
autoreconf -v
./configure --prefix=/usr
}
build() {
cd "${pkgname}/"
./configure \
--prefix=/usr
make
}
package() {
cd pkcs11-helper-$pkgver
cd "${pkgname}/"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/licenses/$pkgname/
install -D -m0644 COPYING* "$pkgdir"/usr/share/licenses/$pkgname/
make DESTDIR="${pkgdir}" install
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}/
install -D -m0644 COPYING* "${pkgdir}"/usr/share/licenses/${pkgname}/
}