mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:04:37 +08:00
50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): AlmAck <almack[at]chakraos[dot]org>
|
|
|
|
pkgname=pcre
|
|
pkgver=8.35
|
|
pkgrel=2
|
|
pkgdesc="A library that implements Perl 5-style regular expressions"
|
|
arch=('x86_64')
|
|
url="http://www.pcre.org/"
|
|
license=('BSD')
|
|
depends=('gcc-libs' 'readline' 'zlib' 'bzip2')
|
|
source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2"
|
|
'pcre-8.35-Do-not-rely-on-wrapping-signed-integer-while-parsein.patch')
|
|
md5sums=('6aacb23986adccd9b3bc626c00979958'
|
|
'a2bc385e8c65edc84e98c9ea5471f169')
|
|
|
|
prepare(){
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
# patch from fedora to fix error on "RunTest" tests
|
|
patch -Np1 -i "${srcdir}/pcre-8.35-Do-not-rely-on-wrapping-signed-integer-while-parsein.patch"
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
./configure --prefix=/usr \
|
|
--enable-unicode-properties \
|
|
--enable-utf8 \
|
|
--enable-pcre16 \
|
|
--enable-pcre32 \
|
|
--enable-jit \
|
|
--enable-pcregrep-libz \
|
|
--enable-pcregrep-libbz2 \
|
|
--enable-pcretest-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
|
|
} |