#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=mono pkgver=2.10.6 zenver=72 pkgrel=1 arch=i486 source=("http://download.mono-project.com/sources/mono/$pkgname-$pkgver.tar.bz2") 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/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Mono (Cross-Platform .Net Implementation)" "Mono provides the necessary software to develop and run .NET client" "and server applications on Linux, Solaris, Mac OS X, Windows, and" "Unix. Sponsored by Novell (http://www.novell.com), the Mono open" "source project has an active and enthusiastic contributing community" "and is positioned to become the leading choice for development of" "Linux applications." ) build() { cd $startdir/src/$pkgname-$pkgver # Add undeclared Arg sed -i "61a #define ARG_MAX _POSIX_ARG_MAX" mono/io-layer/wapi_glob.h # Remove prebuilt binaries rm -rf mcs/class/lib/monolite/* ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --libdir=/usr/lib \ --docdir=/usr/doc/$pkgname-$pkgver \ --build=$arch-slackware-linux make || return 1 make DESTDIR=$startdir/pkg install #repeat pre_permissions to fix permissions problem cd $startdir/pkg find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; #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" | xargs chmod -x find . -type f -name "*.mdb" | xargs chmod -x find . -type f -name "*.cs" | xargs chmod -x find . -type f -name "*.config" | xargs chmod -x find . -type f -name "*.exe" | xargs chmod +x } #doinst() { #Fixes runaway man page # mv /usr/man/man/man1/jay.1.gz /usr/man/man1/jay.1.gz # rm -rf /usr/man/man #}