mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 19:29:03 +08:00
38 lines
883 B
Bash
38 lines
883 B
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
|
|
pkgname=pcre
|
|
pkgver=8.34
|
|
pkgrel=1
|
|
pkgdesc="A library that implements Perl 5-style regular expressions"
|
|
arch=('x86_64')
|
|
url="http://www.pcre.org/"
|
|
license=('BSD')
|
|
depends=('gcc-libs' 'zlib' 'bzip2')
|
|
source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2")
|
|
md5sums=('5439e321351bddd5533551bbce128d07')
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr \
|
|
--enable-unicode-properties \
|
|
--enable-utf8 \
|
|
--enable-jit \
|
|
--enable-pcregrep-libz \
|
|
--enable-pcregrep-libbz2 \
|
|
--enable-pcretest-libreadline
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
make -j1 check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 LICENCE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
} |