12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- set -e
- program=libtasn1
- version=4.18.0
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://ftp.gnu.org/gnu/libtasn1/$tarname
- description="
- A highly portable C library that encodes or decodes an ASN.1 schema.
- Libtasn1 is the ASN.1 library used by GnuTLS, p11-kit and some other
- packages. It was originally written by Fabio Fiorina, and now
- maintained as a GNU package. The goal of this implementation is to
- be highly portable, and only require an ANSI C99 platform.
- "
- homepage=https://www.gnu.org/software/libtasn1
- license="GPLv3+, LGPLv2+"
- docs="AUTHORS CONTRIBUTING.md COPYING ChangeLog NEWS README.md THANKS"
- 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 \
- --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"
- }
|