#!/bin/bash # zlib # # Douglas Thrift # # $Id$ name=zlib version=1.2.3 revision=0 categories=(base archivers) description='A Massively Spiffy Yet Delicately Unobtrusive Compression Library' url='http://www.zlib.net/' depends=('base/glibc') sources=(`name=libpng site_sourceforge $name-$version.tar.bz2` Makefile.in.patch) function build() { gnu_patch Makefile.in.patch || return $? gnu_configure --prefix=/usr --libdir=/lib --shared || return $? install -d $package/usr/lib rm -v $package/lib/libz.so && ln -sv ../../lib/libz.so.$version $package/usr/lib/libz.so || return $? gmake clean || return $? gnu_configure --prefix=/usr || return $? chmod -v 0644 $package/usr/lib/libz.a }