# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=icewm
pkgver=2.6.0
pkgrel=0
pkgdesc="A window manager designed for speed, usability, and consistency"
url="https://github.com/bbidulock/icewm"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.0-only AND MirOS"
depends=""
makedepends="alsa-lib-dev asciidoctor fribidi-dev glib-dev gdk-pixbuf-dev
	imlib2-dev libao-dev libice-dev libjpeg-turbo-dev librsvg-dev libsm-dev
	libsndfile-dev libxcomposite-dev libxft-dev libxinerama-dev libxpm-dev
	libxrandr-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/ice-wm/icewm/releases/download/$pkgver/icewm-$pkgver.tar.lz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="fe491c8c59aa530d48a20134857c787eccfeda5bd9529e063d865bd3c5f243ef41fbecba40aa06e7fa8037af89839958095debebc5d9b1acc9b5670bd0e12eb6  icewm-2.6.0.tar.lz"