Importing fltk from CCR.

This commit is contained in:
Daniele 2012-01-18 02:56:33 +00:00
parent 3ca870e621
commit f9e1aa91b0
2 changed files with 58 additions and 0 deletions

46
fltk/PKGBUILD Normal file
View File

@ -0,0 +1,46 @@
# Contributor: kote
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
pkgname=fltk
pkgver=1.3.0
pkgrel=1
pkgdesc="Graphical user interface toolkit for X."
arch=('i686' 'x86_64')
screenshot="http://www.fltk.org/images/fltk-widgets-std.png"
license=('custom:LGPL')
url="http://www.fltk.org/"
depends=('libjpeg' 'libpng' 'libxft' 'libxinerama' 'hicolor-icon-theme'
'desktop-file-utils' 'xdg-utils' 'libgl')
makedepends=('mesa' 'doxygen' 'libjpeg' 'libpng' 'libxft' 'libxinerama'
'alsa-lib' 'desktop-file-utils')
options=('!docs')
install="fltk.install"
source=("http://ftp.easysw.com/pub/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz")
md5sums=('44d5d7ba06afdd36ea17da6b4b703ca3')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
-e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
./configure --prefix=/usr \
--enable-shared \
--enable-threads \
--enable-xft \
--enable-gl
make
cd documentation && make html
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
( cd fluid && make DESTDIR="${pkgdir}" install install-linux )
chmod 644 "${pkgdir}/usr/lib"/*.a
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:

12
fltk/fltk.install Normal file
View File

@ -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
}