mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 01:34:37 +08:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
pkgname=fltk
|
|
pkgver=1.3.4
|
|
pkgrel=2
|
|
pkgdesc="Graphical user interface toolkit for X."
|
|
arch=('x86_64')
|
|
screenshot="http://www.fltk.org/images/fltk-widgets-std.png"
|
|
license=('custom:LGPL')
|
|
url="http://www.fltk.org/"
|
|
depends=('libjpeg-turbo' 'libpng' 'libxft' 'libxinerama' 'hicolor-icon-theme'
|
|
'desktop-file-utils' 'xdg-utils' 'libgl')
|
|
makedepends=('mesa' 'doxygen' 'alsa-lib')
|
|
options=('!docs')
|
|
categories=('system')
|
|
install="fltk.install"
|
|
source=("http://fltk.org/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.gz")
|
|
md5sums=('c0e43ac259ac8c5d0f7634566e21e3f8')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
|
|
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' \
|
|
-e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
|
|
sed -i 's/x-fluid.desktop/fluid.desktop/' -i fluid/Makefile
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-shared \
|
|
--enable-threads \
|
|
--enable-xft \
|
|
--enable-gl
|
|
|
|
make
|
|
cd documentation && make html
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|
|
|