# Contributor: ScrumpyJack # Maintainer: pkgname=fltk pkgver=1.3.4.2 _realver=1.3.4-2 pkgrel=0 pkgdesc="Cross-platform C++ GUI toolkit" url="https://www.fltk.org/" arch="all" options="!check" # No test suite. license="LGPL-2.0-only WITH FLTK-exception" depends="" depends_dev="libx11-dev libxext-dev libxft-dev mesa-dev" makedepends="$depends_dev libjpeg-turbo-dev libpng-dev libxinerama-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid" source="https://fltk.org/pub/fltk/1.3.4/$pkgname-$_realver-source.tar.gz" builddir="$srcdir"/$pkgname-$_realver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-shared \ --enable-threads \ --with-optim="$CXXFLAGS" make V=1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install # remove static libs rm "$pkgdir"/usr/lib/*.a } fluid() { pkgdesc="Fast Light User Interface Designer" depends= mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="cc169449b71ca966b2043ceedc55e92220ccb6be07b0ac54eeec36bbed5d60e2f59c6faba2403b5292b9120f5255227880a066d98ac82e57d502522bc627fd4d fltk-1.3.4-2-source.tar.gz"