#Maintainer: Shador pkgname=lablgtk pkgver=2.14.0 pkgrel=1ab arch=x86_64 source=("http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-2.14.0.tar.gz") sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("changes" "changes.api" "lgpl" "meta" "readme" "copying") url='http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (Objective Caml interface to gtk+)" "It uses the rich type system of Objective Caml 3 to provide a strongly" "typed, yet very comfortable, object-oriented interface to gtk+. This" "is not that easy if you know the dynamic typing approach taken by " "gtk+. It is still under development, but already fully functional. All" "widgets (but one) are available, with almost all their methods. The" "GLArea widget is also supported in combination with LablGL. LibGlade" "and GdkPixbuf support is also included for both versions. LablGTK2" "adds support for gnomecanvas, librsvg and libpanel Many examples are" "provided. " ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi threads="-j${threadcount}" cd $startdir/src/$pkgname-$pkgver configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --with-threads=yes \ --with-gtkspell make $threads world || return 1 make install DESTDIR=$startdir/pkg chown -R root:root $startdir/pkg/* }