pkgs/pcre2/PKGBUILD

31 lines
691 B
Bash

# Maintainer: Daryl Ronningen
pkgname=pcre2
pkgver=10.42
pkgrel=1
pkgdesc="A library that implements Perl 5-style regular expressions. 2nd version"
arch=("x86_64")
url="https://www.pcre.org/"
license=("BSD")
source=("https://github.com/PCRE2Project/pcre2/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2")
sha256sums=("8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840")
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-jit \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
--enable-pcre2test-libreadline
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}