add libpcre2-10.40
This commit is contained in:
1 file changed
+36
@@ -0,0 +1,36 @@
|
|||||||
|
#!/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=(system.library)
|
||||||
|
uses=(zlib bzip2)
|
||||||
|
zlib_depends=(zlib)
|
||||||
|
bzip2_depends=(bzip2)
|
||||||
|
|
||||||
|
cd pcre2-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib64 \
|
||||||
|
--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`
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user