Add pcre2 package

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-04-21 22:48:47 +02:00
parent b548d51db8
commit 4b9c5ab0a7
13 changed files with 58 additions and 0 deletions

25
pkg/pcre2/build Executable file
View File

@ -0,0 +1,25 @@
VERSION="10.33"
SRCDIR="pcre2-${VERSION}"
TARBALL="${SRCDIR}.tar.bz2"
URL="https://ftp.pcre.org/pub/pcre"
SHA256SUM="35514dff0ccdf02b55bd2e9fa586a1b9d01f62332c3356e379eabb75f789d8aa"
DEPENDS="toolchain"
SUBPKG="pcre2-16 pcre2-16-dev pcre2-32 pcre2-32-dev pcre2-posix pcre2-posix-dev"
prepare() {
return
}
build() {
run_configure "$1" --enable-pcre2-16 --enable-pcre2-32
make -j $NUMJOBS
}
deploy() {
make DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
}
check_update() {
check_update_simple "$URL" "pcre2-" "tar.bz2"
}

View File

@ -0,0 +1 @@
requires pcre2-posix-dev pcre2-16

View File

@ -0,0 +1,4 @@
dir lib 0755 0 0
dir lib/pkgconfig 0755 0 0
slink lib/libpcre2-16.so 0777 0 0 libpcre2-16.so.0.8.0
file lib/pkgconfig/libpcre2-16.pc 0644 0 0

1
pkg/pcre2/pcre2-16.desc Normal file
View File

@ -0,0 +1 @@
requires crt

2
pkg/pcre2/pcre2-16.files Normal file
View File

@ -0,0 +1,2 @@
slink lib/libpcre2-16.so.0 0777 0 0 libpcre2-16.so.0.8.0
file lib/libpcre2-16.so.0.8.0 0755 0 0

View File

@ -0,0 +1 @@
requires pcre2-posix-dev pcre2-32

View File

@ -0,0 +1,4 @@
dir lib 0755 0 0
dir lib/pkgconfig 0755 0 0
slink lib/libpcre2-32.so 0777 0 0 libpcre2-32.so.0.8.0
file lib/pkgconfig/libpcre2-32.pc 0644 0 0

1
pkg/pcre2/pcre2-32.desc Normal file
View File

@ -0,0 +1 @@
requires crt

2
pkg/pcre2/pcre2-32.files Normal file
View File

@ -0,0 +1,2 @@
slink lib/libpcre2-32.so.0 0777 0 0 libpcre2-32.so.0.8.0
file lib/libpcre2-32.so.0.8.0 0755 0 0

View File

@ -0,0 +1 @@
requires pcre2-posix crt-dev

View File

@ -0,0 +1,11 @@
dir include 0755 0 0
dir lib 0755 0 0
dir bin 0755 0 0
dir lib/pkgconfig 0755 0 0
file bin/pcre2-config 0755 0 0
file include/pcre2.h 0644 0 0
file include/pcre2posix.h 0644 0 0
file lib/pkgconfig/libpcre2-posix.pc 0644 0 0
file lib/pkgconfig/libpcre2-8.pc 0644 0 0
slink lib/libpcre2-posix.so 0777 0 0 libpcre2-posix.so.2.0.2
slink lib/libpcre2-8.so 0777 0 0 libpcre2-8.so.0.8.0

View File

@ -0,0 +1 @@
requires crt

View File

@ -0,0 +1,4 @@
slink lib/libpcre2-8.so.0 0777 0 0 libpcre2-8.so.0.8.0
file lib/libpcre2-8.so.0.8.0 0755 0 0
slink lib/libpcre2-posix.so.2 0777 0 0 libpcre2-posix.so.2.0.2
file lib/libpcre2-posix.so.2.0.2 0755 0 0