# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pekwm
pkgver=0.1.17
pkgrel=2
pkgdesc="Fast & Light Window Manager"
url="http://pekwm.org/projects/pekwm"
arch="all"
license="GPL"
depends=
makedepends="libx11-dev libpng-dev libxpm-dev libxrender-dev libxrandr-dev"
install=
subpackages="$pkgname-doc"
source="https://www.pekwm.org/files/pekwm-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

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

md5sums="514c04ff1c6123635c00e57443b5e86f  pekwm-0.1.17.tar.bz2"
sha256sums="8a1fd3bf9f38e8c7bb2b2864c090f986b60cec2281ecf1bba462d120fb327d00  pekwm-0.1.17.tar.bz2"
sha512sums="fa4c95ddc7e17f737b4e90f32258a79bf2a0abe96a2ab1a4166b1aa6832ff7a978116d224c98c31a4b33444b3c59e9ecd6095ca062d8a65f0f6174803f5b0811  pekwm-0.1.17.tar.bz2"
