#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=gtk-sharp2 pkgver=2.12.11 pkgrel=1 zenver=72 arch=i486 source=(http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-$pkgver.tar.bz2) sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/l/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url="http://www.mono-project.com/GtkSharp" options=('norequiredbuilder' 'noautodotnew' 'keepdepfile') CFLAGS="-O2 -march=i486 -mtune=i686" CXXFLAGS=$CFLAGS slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gtk-sharp2 (.Net bindings for GTK+2)" "Gtk#(2), a GUI Toolkit, is a set of .NET bindings for the gtk+2" "toolkit and assorted GNOME libraries. This library allows you to build" "fully native graphical Gnome application using Mono. GTK#(2) is an" "event-driven system like any other modern windowing library. Every" "widget in an application has handler methods that get called when" "particular events happen." ) build() { cd $startdir/src/gtk-sharp-$pkgver ./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 find . -name "Makefile" -exec sed -i "s/-Wall/-Wall -O2 -march=i486 -mtune=i686/g" '{}' \; 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 }