# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=abduco
pkgver=0.6
pkgrel=6
pkgdesc="Session management in a clean and simple way"
url="https://www.brain-dump.org/projects/abduco/"
arch="all"
license="ISC"
subpackages="$pkgname-doc"
source="https://www.brain-dump.org/projects/abduco/abduco-$pkgver.tar.gz
	fix-tests.patch
	"

build() {
	make
}

check() {
	./testsuite.sh
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 README.md \
		-t "$pkgdir"/usr/share/doc/$pkgname
}

sha512sums="
3b70a5cc10f0a2743dcbdf6eebdcfcee0e4f4ff8c6ce0bf0aa9f55c3fa85ab43aa659997735e063eab36aba69f91be7bb5519f3f632bff1b9098f5179165c1f2  abduco-0.6.tar.gz
0d9e5be04bfd9d0826c54d7a8ad8435dcd3559efd7eabca11ebab86f20acabd4d97e1c1fb81e895865e73034d4a2e278f409236f301a6d71ac907af66ced046b  fix-tests.patch
"
