added pcre2

This commit is contained in:
AlmAck 2017-06-03 23:47:36 +02:00
parent 44a6f62328
commit 4dbfd9f116

37
pcre2/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Arch Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=pcre2
pkgver=10.23
pkgrel=1
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version'
arch=('x86_64')
url='http://www.pcre.org/'
license=('BSD')
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'bash')
source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$pkgname-$pkgver.tar.bz2")
md5sums=('b2cd00ca7e24049040099b0a46bb3649')
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
}
check() {
cd $pkgname-$pkgver
make -j1 check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}