core/pcre/PKGBUILD
Jan Mette e339b8e300
2010-04-04 14:20:41 +00:00

30 lines
1.1 KiB
Bash

# $Id: PKGBUILD 73320 2010-03-24 23:27:50Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=pcre
pkgver=8.02
pkgrel=1
pkgdesc="A library that implements Perl 5-style regular expressions"
arch=('i686' 'x86_64')
url="http://www.pcre.org/"
license=('BSD')
depends=('gcc-libs')
options=('!libtool' '!makeflags')
source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2)
md5sums=('27948c1b5f5c1eabc23cba1ebe4c316f')
sha1sums=('2cf2f7f04988813c7ce45c43eb934f3b8b1c3b34')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
./configure --prefix=/usr --enable-utf8 --enable-unicode-properties || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
# grep uses pcre, so we need the libs in /lib
mkdir -p "${pkgdir}/lib"
mv "${pkgdir}"/usr/lib/libpcre.so.* "${pkgdir}/lib/" || return 1
ln -sf ../../lib/libpcre.so.0 "${pkgdir}/usr/lib/libpcre.so" || return 1
install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}