# Description: A portable lossless data compression library written in ANSI C.
# URL: http://www.oberhumer.com/opensource/ucl/
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Younes Hafri ycrux at club-internet dot fr
# Depends on:

name=ucl
version=1.03
release=3
source=(http://www.oberhumer.com/opensource/ucl/download/ucl-$version.tar.gz
  ucl.pc.in)

build() {
	cd ucl-$version

	CFLAGS+=" -std=gnu90 -fPIC"
	./configure \
		--prefix=/usr \
		--enable-shared \
		--enable-static

	make
	make prefix=$PKG/usr install

	mkdir -p $PKG/usr/lib/pkgconfig/
	sed "s|@VERSION@|$version|" $SRC/ucl.pc.in > $PKG/usr/lib/pkgconfig/ucl.pc
}
