40 lines
976 B
Bash
40 lines
976 B
Bash
#!/usr/bin/env bash
|
|
name='libpcre2'
|
|
release='1'
|
|
version='10.40'
|
|
url='https://pcre.org'
|
|
description='Perl-compatible regular expression library'
|
|
email='kurth4cker@tutanota.com'
|
|
maintainer='kurth4cker'
|
|
license=('BSD')
|
|
source=("https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.gz")
|
|
md5sums=('252411a2f9cb529cda965bff37af1d18')
|
|
arch=('x86_64')
|
|
group=(dev.libs)
|
|
uses=(zlib bzip2)
|
|
zlib_depends=(zlib)
|
|
bzip2_depends=(bzip2)
|
|
|
|
cd pcre2-$version
|
|
|
|
setup(){
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64/libpcre2 \
|
|
--enable-shared \
|
|
--enable-static \
|
|
$(use_opt zlib --enable-pcre2grep-libz --disable-pcre2grep-libz) \
|
|
$(use_opt bzip2 --enable-pcre2grep-libbz2 --disable-pcre2grep-libbz2)
|
|
}
|
|
|
|
build(){
|
|
make -j`nproc`
|
|
}
|
|
|
|
package(){
|
|
make install -j`nproc`
|
|
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/
|
|
echo "/usr/lib64/libpcre2/" > ${DESTDIR}/etc/ld.so.conf.d/libpcre2.conf
|
|
mv ${DESTDIR}/usr/lib64/{$name/pkgconfig,}
|
|
}
|
|
|