# $Id: PKGBUILD 197 2009-07-20 09:24:46Z spupykin $ pkgname=fltk2 pkgver=2.0 _pkgver=2.0.x-r6829 pkgrel=4 pkgdesc="Graphical user interface toolkit for X" arch=(i686 x86_64) license=('LGPL') url="http://www.fltk.org/" depends=('libjpeg' 'libpng' 'gcc-libs' 'libxft' 'libxext') makedepends=('mesa') source=(http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/snapshots/fltk-${_pkgver}.tar.bz2) md5sums=('69f75bae015b4ccfd8930b0dff418071') build() { cd $startdir/src/fltk-${_pkgver} [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared patch -p0 src/filename_list.cxx < int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort); EOF make || return 1 patch -p0 fluid/Makefile < \$(DESTDIR)\$(bindir)/fltk2-config --post \$(DESTDIR)\$(bindir)/fluid2\$(EXEEXT) EOF make DESTDIR=$startdir/pkg install }