#Packager: Maximus (maximuus[at]gmail[dot]com) pkgname=LibRaw pkgver=0.8.5 pkgrel=1mb source=("http://www.libraw.org/data/LibRaw-0.8.5.tar.gz" "http://people.salixos.org/maximus/$pkgname/$pkgver/LibRaw-x86_64-makefile.patch" "http://people.salixos.org/maximus/$pkgname/$pkgver/LibRaw-i486-makefile.patch") sourcetemplate=http://people.salixos.org/maximus/$pkgname/$pkgver/ docs=("copyright" "changelog") url=http://www.libraw.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "LibRaw (a raw image decoder)" "LibRaw is a library for reading RAW files obtained from digital photo" "cameras (CRW/CR2, NEF, RAF, DNG, and others)." "LibRaw is based on the source codes of the dcraw utility, where part" "of drawbacks have already been eliminated and part will be fixed in" "future. The users of the library are provided with API to be built" "into their software programs." ) build() { cd $startdir/src/$pkgname-$pkgver #patch makefile patch < ../LibRaw-$arch-makefile.patch || exit 1 #create directories mkdir -p $startdir/pkg/usr/{bin,include} mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX} #build and install library and samples make || return 1 make install DESTDIR=$startdir/pkg }