12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- set -e
- program=pcre
- version=8.45
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.bz2
- fetch=https://sourceforge.net/projects/pcre/files/pcre/${version}/$tarname
- description="
- Perl-compatible regular expressions.
- The PCRE library is a set of functions that implement regular
- expression pattern matching using the same syntax and semantics
- as Perl, with just a few differences.
- "
- homepage=https://www.pcre.org
- license=BSD
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" \
- CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-jit \
- --enable-unicode-properties \
- --enable-pcretest-libreadline \
- --enable-pcregrep-libz \
- --enable-pcregrep-libbz2 \
- --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
- }
|