core/pcre/PKGBUILD

41 lines
961 B
Bash
Raw Normal View History

2011-01-16 07:39:26 +08:00
#
# Core Packages for Chakra, part of chakra-project.org
2011-01-16 07:39:26 +08:00
#
# maintainer (x86_64): AlmAck <almack[at]chakraos[dot]org>
2010-03-13 23:25:19 +08:00
pkgname=pcre
2015-05-26 06:03:40 +08:00
pkgver=8.37
2015-01-05 22:32:39 +08:00
pkgrel=1
2010-03-13 23:25:19 +08:00
pkgdesc="A library that implements Perl 5-style regular expressions"
arch=('x86_64')
2010-03-13 23:25:19 +08:00
url="http://www.pcre.org/"
license=('BSD')
2014-07-03 06:20:07 +08:00
depends=('gcc-libs' 'readline' 'zlib' 'bzip2')
2015-05-26 06:03:40 +08:00
source=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2")
md5sums=('ed91be292cb01d21bc7e526816c26981')
2010-03-13 23:25:19 +08:00
build() {
2014-07-03 06:20:07 +08:00
cd ${pkgname}-${pkgver}
2014-02-10 06:14:56 +08:00
./configure --prefix=/usr \
--enable-unicode-properties \
--enable-utf8 \
2014-07-03 06:20:07 +08:00
--enable-pcre16 \
--enable-pcre32 \
2014-02-10 06:14:56 +08:00
--enable-jit \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 \
--enable-pcretest-libreadline
2011-01-16 07:39:26 +08:00
make
2010-03-13 23:25:19 +08:00
}
2011-01-16 07:39:26 +08:00
check() {
2014-07-03 06:20:07 +08:00
cd ${pkgname}-${pkgver}
2014-02-10 06:14:56 +08:00
make -j1 check
}
2011-01-16 07:39:26 +08:00
package() {
2014-07-03 06:20:07 +08:00
cd ${pkgname}-${pkgver}
2011-01-16 07:39:26 +08:00
make DESTDIR="${pkgdir}" install
install -Dm644 LICENCE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}