A new user interface for you! Read more...

File PKGBUILD of Package fltk

# Maintainer: LaraCraft304 <lara@craft.net.br>
# Contributor: SpepS <dreamspepser at yahoo dot it>

pkgname=fltk
pkgver=1.3.4
pkgrel=1
pkgdesc="Graphical user interface toolkit for X. Stable 1.3.x version."
arch=(i686 x86_64)
url="http://www.fltk.org/"
license=('GPL')
depends=('bash' 'zlib' 'libjpeg' 'libpng' 'libxft' 'libxext')
makedepends=('mesa')
provides=("${pkgname}=$pkgver")
source=("http://fltk.org/pub/fltk/$pkgver/fltk-$pkgver-source.tar.gz")
md5sums=('c0e43ac259ac8c5d0f7634566e21e3f8')

build() {
  cd "$srcdir/${pkgname}-$pkgver"

  LDFLAGS="${LDFLAGS//,--as-needed}" LIBS="-lfontconfig" \
  ./configure --prefix=/usr \
              --libdir=/usr/lib/ \
              --enable-threads \
              --enable-xft \
              --enable-shared \
              --enable-xdbe
              
  make -j4
}

package() {
  cd "$srcdir/${pkgname}-$pkgver"
  make DESTDIR="$pkgdir" install

  # remove docu
  rm -rf "$pkgdir/usr/share"

  # static libs permission fix
  chmod 644 "$pkgdir/usr/lib/"*.a
}