# SliTaz package receipt.

PACKED_SIZE="240.0K"
UNPACKED_SIZE="1.1M"
PACKAGE="pcre"
VERSION="8.39"
CATEGORY="system-tools"
SHORT_DESC="Perl 5 Compatible Regular Expression, library"
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.pcre.org/"
WGET_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL"
HOST_ARCH="i486 arm"

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--prefix=/usr \
		--enable-pcre16 \
		--enable-pcre32 \
		--enable-jit \
		--enable-unicode-properties \
		$CONFIGURE_ARGS &&
	make && make install

	find $install/usr/share/man -type f -exec gzip -9 \{\} \;
	for i in $(find $install/usr/share/man -type l); do
		dest=$(readlink $i)
		rm $i; ln -s $dest.gz $i.gz
	done
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $install/usr/lib/*.so* $fs/usr/lib
}
