# Contributor: Coco Liliace <coco@liliace.dev>
# Maintainer: Coco Liliace <coco@liliace.dev>
pkgname=when
pkgver=1.1.45
pkgrel=1
# bitbucket names the tarball with a shortsha even when you pull from tag
_gitrev="3dacb13c155e"
pkgdesc="Extremely simple personal calendar program"
url="https://www.lightandmatter.com/when/when.html"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/ben-crowell/when/get/$_gitrev.tar.gz"
builddir="$srcdir/ben-crowell-$pkgname-$_gitrev"

check() {
	make test
}

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

sha512sums="
5e0a62d2770c81d77b486b2a8d300c5fb20de36b81b7cf3a60d3e5d985ff4f689a57aecb7b6b659982b975b95b624a1354aeac35dc4b42411a4251adf7cedaf7  when-1.1.45.tar.gz
"
