# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=berry
pkgver=0.1.12
pkgrel=2
pkgdesc="a healthy, byte-sized window manager"
url="https://berrywm.org/"
arch="all"
license="MIT"
makedepends="libx11-dev libxft-dev libxinerama-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/JLErvin/berry/archive/$pkgver.tar.gz
	fix_prefix.patch
	"
options="!check" # test files only for man page

build() {
	make -e
}

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

	install -Dm644 LICENSE \
		-t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
a186c125f9f1a7b359dedeadb4b627ffb7f9b641db35ef6cdbaf550095de12a9fc419539a00068eee32e46b9c8f5f65077aa4a74eb79c4b1d905d3822423c379  berry-0.1.12.tar.gz
0e4940ca0a5483f4704994ebecb9ea68ba400d785a4bb50063fe133867fd9743e0b4c65f9a18b5be494c1bf24480d8f7c96fd5bac00c9531670ad2c31f11b654  fix_prefix.patch
"