desktop/fltk/PKGBUILD

43 lines
1.2 KiB
Bash
Raw Normal View History

2012-01-18 10:56:33 +08:00
pkgname=fltk
pkgver=1.3.4
2019-01-20 18:07:56 +08:00
pkgrel=3
2012-01-18 10:56:33 +08:00
pkgdesc="Graphical user interface toolkit for X."
2013-02-23 03:04:36 +08:00
arch=('x86_64')
2012-01-18 10:56:33 +08:00
screenshot="http://www.fltk.org/images/fltk-widgets-std.png"
license=('custom:LGPL')
url="http://www.fltk.org/"
2013-02-23 03:04:36 +08:00
depends=('libjpeg-turbo' 'libpng' 'libxft' 'libxinerama' 'hicolor-icon-theme'
2012-01-18 10:56:33 +08:00
'desktop-file-utils' 'xdg-utils' 'libgl')
2013-02-23 03:04:36 +08:00
makedepends=('mesa' 'doxygen' 'alsa-lib')
2012-01-18 10:56:33 +08:00
options=('!docs')
2013-02-23 03:04:36 +08:00
categories=('system')
2019-01-20 18:07:56 +08:00
source=("http://fltk.org/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.gz")
md5sums=('c0e43ac259ac8c5d0f7634566e21e3f8')
2012-01-18 10:56:33 +08:00
build() {
2019-01-20 18:07:56 +08:00
cd $pkgname-$pkgver
2012-01-18 10:56:33 +08:00
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
-e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
2019-01-20 18:07:56 +08:00
sed -i 's/x-fluid.desktop/fluid.desktop/' -i fluid/Makefile
2012-01-18 10:56:33 +08:00
./configure --prefix=/usr \
--enable-shared \
--enable-threads \
--enable-xft \
--enable-gl
make
cd documentation && make html
}
package() {
2019-01-20 18:07:56 +08:00
cd $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
2012-01-18 10:56:33 +08:00
}
2019-01-20 18:07:56 +08:00