# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=flwm
pkgver=1.16
pkgrel=2
pkgdesc="Fast Light Window Manager"
options="!check" # No testsuite
url="https://flwm.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="fltk-dev libjpeg-turbo-dev coreutils"
subpackages="$pkgname-doc"
source="https://github.com/bbidulock/flwm/releases/download/$pkgver/flwm-$pkgver.tgz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	install -Dm755 flwm -t "$pkgdir"/usr/bin/
	install -Dm644 flwm.1 -t "$pkgdir"/usr/share/man/man1/
	install -Dm644 flwm.desktop -t "$pkgdir"/usr/share/xsessions/
	install -Dm644 logo.png "$pkgdir"/usr/share/pixmaps/flwm.png
}

sha512sums="
d352e13b0385a017922d636988ba02f20cbe5f8ccd69522f43711a3d3cc04fe876af9f2126d63bd6c862494bace6510a5cda286ce165a54bf58cade1758e1f12  flwm-1.16.tgz
"
