mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-13 03:19:01 +08:00
38 lines
860 B
Bash
38 lines
860 B
Bash
|
# 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"
|
||
|
}
|