🔒 Repository is read-only – file editing is disabled.
12345678910111213141516171819202122232425262728293031323334353637383940414243
pkgname: pcre
pkgver: '8.45'
pkgrel: '2'
pkgdesc: 'Perl Compatible Regular Expression libraries.'
url: 'https://www.pcre.org/'
arch: x86_64
depends: []
makedepends:
- bzip2
- readline
source:
- 'https://sourceforge.net/projects/pcre/files/pcre/${pkgver}/${pkgname}-${pkgver}.tar.bz2'
sha256sums:
- SKIP
build: |
cd ${pkgname}-${pkgver}
[ "x86_64" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
./configure --prefix=/usr \
--docdir=/usr/share/doc/pcre-${pkgver} \
--enable-unicode-properties \
--enable-pcre16 \
--enable-pcre32 \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 \
--enable-pcretest-libreadline \
--disable-static
make
make DESTDIR=${PKGDIR} install
mkdir ${PKGDIR}/lib
mv -v ${PKGDIR}/usr/lib/libpcre.so.* ${PKGDIR}/lib
ln -sfv ../../lib/$(readlink ${PKGDIR}/usr/lib/libpcre.so) ${PKGDIR}/usr/lib/libpcre.so
rm -f ${PKGDIR}/usr/lib/libpcre{,16,32}.la
rm -f ${PKGDIR}/usr/lib/libpcre{posix,cpp}.la
package: |
true