diff --git a/pkg/pcre2/build b/pkg/pcre2/build new file mode 100755 index 0000000..3a616ca --- /dev/null +++ b/pkg/pcre2/build @@ -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" +} diff --git a/pkg/pcre2/pcre2-16-dev.desc b/pkg/pcre2/pcre2-16-dev.desc new file mode 100644 index 0000000..eabf2d5 --- /dev/null +++ b/pkg/pcre2/pcre2-16-dev.desc @@ -0,0 +1 @@ +requires pcre2-posix-dev pcre2-16 diff --git a/pkg/pcre2/pcre2-16-dev.files b/pkg/pcre2/pcre2-16-dev.files new file mode 100644 index 0000000..a1c63e4 --- /dev/null +++ b/pkg/pcre2/pcre2-16-dev.files @@ -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 diff --git a/pkg/pcre2/pcre2-16.desc b/pkg/pcre2/pcre2-16.desc new file mode 100644 index 0000000..4a1d73a --- /dev/null +++ b/pkg/pcre2/pcre2-16.desc @@ -0,0 +1 @@ +requires crt diff --git a/pkg/pcre2/pcre2-16.files b/pkg/pcre2/pcre2-16.files new file mode 100644 index 0000000..304b01d --- /dev/null +++ b/pkg/pcre2/pcre2-16.files @@ -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 diff --git a/pkg/pcre2/pcre2-32-dev.desc b/pkg/pcre2/pcre2-32-dev.desc new file mode 100644 index 0000000..1874133 --- /dev/null +++ b/pkg/pcre2/pcre2-32-dev.desc @@ -0,0 +1 @@ +requires pcre2-posix-dev pcre2-32 diff --git a/pkg/pcre2/pcre2-32-dev.files b/pkg/pcre2/pcre2-32-dev.files new file mode 100644 index 0000000..0e1df6c --- /dev/null +++ b/pkg/pcre2/pcre2-32-dev.files @@ -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 diff --git a/pkg/pcre2/pcre2-32.desc b/pkg/pcre2/pcre2-32.desc new file mode 100644 index 0000000..4a1d73a --- /dev/null +++ b/pkg/pcre2/pcre2-32.desc @@ -0,0 +1 @@ +requires crt diff --git a/pkg/pcre2/pcre2-32.files b/pkg/pcre2/pcre2-32.files new file mode 100644 index 0000000..d06a4cf --- /dev/null +++ b/pkg/pcre2/pcre2-32.files @@ -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 diff --git a/pkg/pcre2/pcre2-posix-dev.desc b/pkg/pcre2/pcre2-posix-dev.desc new file mode 100644 index 0000000..3ddd14a --- /dev/null +++ b/pkg/pcre2/pcre2-posix-dev.desc @@ -0,0 +1 @@ +requires pcre2-posix crt-dev diff --git a/pkg/pcre2/pcre2-posix-dev.files b/pkg/pcre2/pcre2-posix-dev.files new file mode 100644 index 0000000..1078d42 --- /dev/null +++ b/pkg/pcre2/pcre2-posix-dev.files @@ -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 diff --git a/pkg/pcre2/pcre2-posix.desc b/pkg/pcre2/pcre2-posix.desc new file mode 100644 index 0000000..4a1d73a --- /dev/null +++ b/pkg/pcre2/pcre2-posix.desc @@ -0,0 +1 @@ +requires crt diff --git a/pkg/pcre2/pcre2-posix.files b/pkg/pcre2/pcre2-posix.files new file mode 100644 index 0000000..5edb785 --- /dev/null +++ b/pkg/pcre2/pcre2-posix.files @@ -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