# Packager: Phill Watkins <ubemail~at~ymail~dot~com>

pkgname=libewf
pkgver=20100226
pkgrel=1pw
#arch=noarch
source=("http://downloads.sourceforge.net/libewf/libewf-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/pwatk/packages/l/$pkgname/$pkgver
docs=("AUTHORS" "ChangeLog" "COPYING" "INSTALL" "NEWS" "README")
url=http://libewf.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libewf (Expert Witness Compression Format)"
"Libewf is a library for support of the Expert Witness Compression"
"Format (EWF), it support both the SMART format (EWF-S01) and the"
"EnCase format (EWF-E01). Libewf allows you to read and write media"
"information within the EWF files."
)

build() {
	set -e
	
	cd $startdir/src/$pkgname-$pkgver
	./configure \
	  --prefix=/usr \
	  --sysconfdir=/etc \
	  --localstatedir=/var \
	  --libdir=/usr/lib${LIBDIRSUFFIX} \
	  --mandir=/usr/man \
	  --infodir=/usr/info \
	  --build=$arch-slackware-linux \
	  --disable-static
	make --jobs=$(( $(getconf _NPROCESSORS_ONLN) + 1 ))
	make install DESTDIR=$startdir/pkg

    set +e
}