mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
37 lines
1 KiB
Bash
37 lines
1 KiB
Bash
# $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 <<EOF
|
|
66c66
|
|
< int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
|
|
---
|
|
> int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
|
|
EOF
|
|
|
|
make || return 1
|
|
|
|
patch -p0 fluid/Makefile <<EOF
|
|
137c137
|
|
< \$(bindir)/fltk2-config --post \$(DESTDIR)\$(bindir)/fluid2\$(EXEEXT)
|
|
---
|
|
> \$(DESTDIR)\$(bindir)/fltk2-config --post \$(DESTDIR)\$(bindir)/fluid2\$(EXEEXT)
|
|
EOF
|
|
|
|
make DESTDIR=$startdir/pkg install
|
|
}
|