-
Notifications
You must be signed in to change notification settings - Fork 12
/
PKGBUILD
40 lines (33 loc) · 992 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pkgname=pcre2
pkgver=10.43
pkgrel=1
pkgdesc="A library that implements Perl 5-style regular expressions, next generation."
arch=('x86_64')
url="https://www.pcre.org/"
license=('BSD')
depends=('gcc-libs' 'readline' 'zlib' 'bzip2' 'libedit')
options=('!libtool')
#source=("https://ftp.pcre.org/pub/pcre/${pkgname}-${pkgver}.tar.bz2")
source=("https://github.com/PhilipHazel/pcre2/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('c8e2043cbc4abb80e76dba323f7c409f')
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--enable-unicode \
--enable-jit \
--enable-pcre2-16 \
--enable-pcre2-32 \
--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
}