#!/bin/sh

NAME="mono-addins"
VERSION="0.4"
REVISION="4"

PKG_SOURCEURL='http://ftp.novell.com/pub/mono/sources/$NAME/$NAME-$VERSION.tar.bz2'

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


PKG_DISABLESMP="yep"

cflags
prepare
analyzesource
configure
make
makeinstall install-strip
tidydocumentation
analyzebinaries

if [ "$DLG_ARCH" == "x86-64" ]; then
# Here we put some stuff into the doinst.sh 
mkdir $PKG_STAGEROOT/install
touch $PKG_STAGEROOT/install/doinst.sh

cat << EOF >> $PKG_STAGEROOT/install/doinst.sh  

ln -s /usr/lib/mono/mono-addins/ /usr/lib64/mono/mono-addins

EOF

fi



finalizepackage
packagize
cleanup
