updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / fltk-stable / PKGBUILD
blobbcd2d0d8f6325a74e435d13300e9535c2dcfbd94
1 # Maintainer: YL3GDY <yl3gdy at archlinux dot us>
3 pkgname=fltk-stable
4 pkgver=1.1.10
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 license=('custom:LGPL')
8 url="http://www.fltk.org/"
9 depends=('sh' 'libjpeg' 'libpng' 'libxft' 'libxinerama' 'alsa-lib' 'hicolor-icon-theme' 'desktop-file-utils' 'xdg-utils')
10 makedepends=('mesa' 'doxygen')
11 conflicts=('fltk')
12 provides=('fltk=1.1.10 fltk-docs=1.1.10')
13 source=(http://ftp.easysw.com/pub/fltk/$pkgver/fltk-$pkgver-source.tar.gz)
14 install=fltk.install
15 md5sums=('e6378a76ca1ef073bcb092df1ef3ba55')
17 pkgdesc="Graphical user interface toolkit for X. Stable 1.1.x branch (with documentation)"
19 build() {
20   cd "$srcdir/fltk-$pkgver"
21   ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared
22   make
23   cd documentation
24   make alldocs
27 package() {
28   cd "$srcdir/fltk-$pkgver"
29   make DESTDIR="$pkgdir" install install-desktop
30   chmod 644 "$pkgdir"/usr/lib/*.a
31   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
33   # Install documentation
34   cd "$srcdir/fltk-$pkgver/documentation"
35   install -d "$pkgdir"/usr/share/doc/fltk/
36   cd ../test
37   make DESTDIR="$pkgdir" install