Commit ff1917e3 authored by Luca Giambonini's avatar Luca Giambonini

imported fltk from core

[skip-ci]
parent 7a7f95df
Pipeline #2291 skipped
pkgname=fltk
pkgver=1.3.4
_pkgver=2
pkgrel=2
pkgrel=3
pkgdesc="Graphical user interface toolkit for X."
arch=('x86_64')
screenshot="http://www.fltk.org/images/fltk-widgets-std.png"
......@@ -13,21 +11,15 @@ depends=('libjpeg-turbo' 'libpng' 'libxft' 'libxinerama' 'hicolor-icon-theme'
makedepends=('mesa' 'doxygen' 'alsa-lib')
options=('!docs')
categories=('system')
source=("http://fltk.org/pub/${pkgname}/${pkgver}/${pkgname}-${pkgver}-${_pkgver}-source.tar.gz")
md5sums=('b8e291343357e49dd81a22408744e400')
prepare() {
cd ${pkgname}-${pkgver}-${_pkgver}
sed -e 's/x-fluid.desktop/fluid.desktop/' \
-i fluid/Makefile
}
source=("http://fltk.org/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.gz")
md5sums=('c0e43ac259ac8c5d0f7634566e21e3f8')
build() {
cd ${pkgname}-${pkgver}-${_pkgver}
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 \
......@@ -40,10 +32,11 @@ build() {
}
package() {
cd ${pkgname}-${pkgver}-${_pkgver}
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C fluid install install-linux
chmod 644 "${pkgdir}/usr/lib"/*.a
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment