mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:24:37 +08:00
38 lines
860 B
Bash
38 lines
860 B
Bash
# Arch Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=pcre2
|
|
pkgver=10.30
|
|
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=('d3adf4b130eed854a530390f00020a65')
|
|
|
|
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"
|
|
}
|