#!/bin/sh
#
# Copyright 2005 Paul Blazejowski <paulb@blazebox.homeip.net>
# Available under the terms of the GNU GPL.
#

NAME="libnl"
VERSION="1.0pre6"
REVISION="1"
PKG_SOURCEURL='http://www.suug.ch/~tgr/$NAME/files/$NAME-1.0-pre6.tar.bz2'
PKG_SOURCEMD5=''

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

cflags
cxxflags
prepare
analyzesource
configure
make -j2
#makecheck
makeinstall #install-strip

# Yeah the pc file needs to be moved to /usr/lib
# but my patch magic does not work around this
spewdo "mv $PKG_STAGEROOT/lib $PKG_STAGEROOT$PKG_PREFIX"

# strip the lib since the makefile did not
spewdo "strip $PKG_STAGEROOT$PKG_PREFIX/lib/$NAME.so.1.0-pre6"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup

