123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- set -e
- program=p11-kit
- version=0.24.1
- release=1
- pkgcategory=networking
- tarname=${program}-${version}.tar.xz
- fetch=https://github.com/p11-glue/p11-kit/releases/download/${version}/$tarname
- description="
- Provides a way to load and enumerate PKCS#11 modules.
- Provides a way to load and enumerate PKCS#11 modules. Provides a
- standard configuration setup for installing PKCS#11 modules in such a
- way that they're discoverable.
- Also solves problems with coordinating the use of PKCS#11 by different
- components or libraries living in the same process.
- "
- homepage=https://p11-glue.github.io/p11-glue/p11-kit.html
- license="BSD 3-clause"
- docs="AUTHORS CONTRIBUTING.md COPYING ChangeLog NEWS README"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" \
- CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --enable-debug=no \
- --disable-rpath \
- --with-trust-paths=/etc/pki/anchors \
- --without-systemd \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- if test -d "${destdir}/$infodir"
- then
- rm -f "${destdir}/${infodir}/dir"
- lzip -9 "${destdir}/${infodir}"/*
- fi
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|