Skip to content

Commit

Permalink
[new-package] pkcs11-helper 1.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik authored Dec 2, 2024
1 parent f988ef0 commit 0fe161f
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions mingw-w64-pkcs11-helper/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Maintainer: Frederik Carlier <[email protected]>

_realname=pkcs11-helper
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.30.0
pkgrel=1
pkgdesc="pkcs11-helper (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://github.com/OpenSC/pkcs11-helper/'
license=('spdx:GPL-2.0 or BSD-3-Clause')
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools"
"${MINGW_PACKAGE_PREFIX}-cc"
"man2html")
depends=("${MINGW_PACKAGE_PREFIX}-openssl")
source=("https://github.com/OpenSC/${_realname}/releases/download/${_realname}-${pkgver}/${_realname}-${pkgver}.tar.bz2")
sha256sums=('4c5815ba910cabf26df08d449ca2909daf4538c9899aa7f7fadc61229d3488a9')

prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
autoreconf -ivf
}

build() {
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"

../"${_realname}-${pkgver}"/configure \
--prefix="${MINGW_PREFIX}" \
--build="${MINGW_CHOST}" \
--host="${MINGW_CHOST}" \
--target="${MINGW_CHOST}" \
--enable-static \
--enable-shared

make
}

check() {
cd "${srcdir}/build-${MSYSTEM}"

make check
}

package() {
cd "${srcdir}/build-${MSYSTEM}"

make install DESTDIR="${pkgdir}"

install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}

0 comments on commit 0fe161f

Please sign in to comment.