diff options
Diffstat (limited to 'extra/fltk')
-rw-r--r-- | extra/fltk/PKGBUILD | 52 | ||||
-rw-r--r-- | extra/fltk/fltk.install | 12 |
2 files changed, 48 insertions, 16 deletions
diff --git a/extra/fltk/PKGBUILD b/extra/fltk/PKGBUILD index f5335f613..2ce310cdd 100644 --- a/extra/fltk/PKGBUILD +++ b/extra/fltk/PKGBUILD @@ -1,26 +1,46 @@ -# $Id: PKGBUILD 71291 2010-03-06 01:40:12Z pierre $ +# $Id: PKGBUILD 130308 2011-07-04 21:56:54Z eric $ -pkgname=fltk -pkgver=1.1.10 +pkgbase=fltk +pkgname=('fltk' 'fltk-docs') +pkgver=1.3.0 pkgrel=1 -pkgdesc="Graphical user interface toolkit for X" arch=('i686' 'x86_64') -license=('LGPL') +license=('custom:LGPL') url="http://www.fltk.org/" -depends=('libjpeg' 'libpng' 'gcc-libs' 'libxft' 'libxext') -makedepends=('mesa') -source=("http://ftp.easysw.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.bz2") -md5sums=('a1765594bc427ff892e36089fe1fa672') +depends=('sh' 'libjpeg' 'libpng' 'libxft' 'libxinerama' 'alsa-lib' 'hicolor-icon-theme' 'desktop-file-utils' 'xdg-utils') +makedepends=('mesa' 'doxygen') +source=(http://ftp.easysw.com/pub/$pkgbase/$pkgver/$pkgbase-$pkgver-source.tar.gz) +md5sums=('44d5d7ba06afdd36ea17da6b4b703ca3') build() { - cd $srcdir/$pkgname-$pkgver - export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" - export LDFLAGS="${LDFLAGS//,--as-needed}" + cd "$srcdir/$pkgbase-$pkgver" ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared - make || return 1 + make + cd documentation + make html } -package() { - cd $srcdir/$pkgname-$pkgver - make DESTDIR=$pkgdir install +package_fltk() { + pkgdesc="Graphical user interface toolkit for X" + options=('!docs') + install=fltk.install + + cd "$srcdir/$pkgbase-$pkgver" + make DESTDIR="$pkgdir" install install-desktop + chmod 644 "$pkgdir"/usr/lib/*.a + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_fltk-docs() { + pkgdesc="Graphical user interface toolkit for X (documentation)" + depends=('') + + cd "$srcdir/$pkgbase-$pkgver/documentation" + install -d "$pkgdir"/usr/share/doc/fltk/ + for _file in html/* ; do + install -m644 $_file "$pkgdir"/usr/share/doc/fltk/ + done + cd ../test + make DESTDIR="$pkgdir" install + install -D -m644 ../COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/extra/fltk/fltk.install b/extra/fltk/fltk.install new file mode 100644 index 000000000..f89ec8213 --- /dev/null +++ b/extra/fltk/fltk.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |