#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=mono-tools pkgver=2.6.2 pkgrel=1 zenver=66 arch=i486 source=("http://ftp.novell.com/pub/mono/sources/mono-tools/$pkgname-$pkgver.tar.bz2" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/d/$pkgname/04-gendarme_link_libraries_correctly.patch" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/d/$pkgname/00-fix_build_system.patch") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/d/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.mono-project.com/Main_Page extradepends="mono,libgdiplus,gnome-desktop-sharp,gtk-sharp2,gecko-sharp,webkit-sharp,gnome-sharp" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mono-tools - utilities for use with Mono" "Mono Tools is a collection of development and testing programs and" "utilities for use with Mono. It includes Monodoc, a set of libraries" "and applications for viewing and editing Mono class library" "documentation." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < ../00-fix_build_system.patch patch -p1 < ../04-gendarme_link_libraries_correctly.patch ./configure \ --prefix="/usr" \ --sysconfdir="/etc" \ --localstatedir="/var" \ --mandir="/usr/man" \ --infodir="/usr/info" \ --with-doc-dir="/usr/doc" \ --enable-static="no" \ --enable-shared="yes" \ --build=$arch-slackware-linux make || return 1 make DESTDIR=$startdir/pkg install #make sure files that need to be executable are executable and files that do not, are not. cd $startdir/pkg find . -type f -name "*.dll" -or -name "*.mdb" -or -name "*.cs" -or -name "*.config" | xargs chmod -x find . -type f -name "*.exe" | xargs chmod +x #fix icons mkdir -p ./usr/share/icons/hicolor/48x48/apps mkdir -p ./usr/share/icons/hicolor/scalable/apps mogrify -resize 48x48 ./usr/share/pixmaps/ilcontrast.png mv ./usr/share/pixmaps/* ./usr/share/icons/hicolor/48x48/apps/ mv ./usr/share/icons/hicolor/48x48/apps/gendarme.svg ./usr/share/icons/hicolor/scalable/apps/ rm -rf ./usr/share/pixmaps #fix .desktops cd ./usr/share/applications sed -i "s|#Icon=gnome-terminal|Icon=monodoc|" gsharp.desktop sed -i "s|/usr/bin/||" {gendarme-wizard.desktop,gsharp.desktop,monodoc.desktop} #mprof-heap-viewer.desktop refers to a non-existant file, so let's remove it #rm mprof-heap-viewer.desktop } doinst() { #fix man pages mv /usr/man/man/man1/* /usr/man/man1/ rm -rf /usr/man/man #fix segfault with monodoc and other problems ln -s /usr/lib/libwebkit-1.0.so /usr/lib/libwebkit-1.0.so.1 }