pkgs/pcre2/PKGBUILD

33 lines
740 B
Text
Raw Permalink Normal View History

2023-12-05 04:47:04 +00:00
# Maintainer: Daryl Ronningen
pkgname=pcre2
pkgver=10.42
pkgrel=1
2023-12-08 02:05:38 +00:00
pkgdesc="A library that implements Perl 5-style regular expressions. 2nd version"
arch=("x86_64")
url="https://www.pcre.org/"
license=("BSD")
2023-12-11 13:18:00 +00:00
depends=("bzip2" "zlib-ng" "readline" "ncurses")
2023-12-05 04:47:04 +00:00
source=("https://github.com/PCRE2Project/pcre2/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2")
2023-12-08 02:05:38 +00:00
sha256sums=("8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840")
2023-12-05 04:47:04 +00:00
build() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
./configure \
--prefix=/usr \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-jit \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
--enable-pcre2test-libreadline
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
make
2023-12-05 04:47:04 +00:00
}
package() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
2023-12-05 04:47:04 +00:00
}