summaryrefslogtreecommitdiff
path: root/community-testing/fltk2/PKGBUILD
blob: 782982bacfedd5a673d0dab01437604030475345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 63100 2012-01-30 18:55:51Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=fltk2
pkgver=2.0
_pkgver=2.0.x-alpha-r9166
pkgrel=8
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' 'libxi' 'libxinerama')
makedepends=('mesa')
source=(http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/snapshots/fltk-${_pkgver}.tar.bz2)
md5sums=('d5e7cd859d2aeb9bb6e13ee298e8b2aa')

build() {
  cd $srcdir/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
  make DESTDIR=$pkgdir install
}