# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=remind
pkgver=05.01.01
pkgrel=0
pkgdesc="Sophisticated calendar and alarm program"
url="https://dianne.skoll.ca/projects/remind/"
arch="all"
license="GPL-2.0-only"
checkdepends="tzdata"
options="!check"
subpackages="$pkgname-doc tkremind::noarch"
source="https://dianne.skoll.ca/projects/remind/download/remind-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make -j1 test
}

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

tkremind() {
	depends="$pkgname=$pkgver-r$pkgrel tk tcl-lib"

	amove usr/bin/tkremind
	amove usr/share/applications/tkremind.desktop
	amove usr/share/pixmaps/tkremind.png
}

sha512sums="
ee3fb6c4eb55ef13f0e375745e293a0d0c3c53505af29287e0de1c4dbab8bea63fec115546cc733c58fddc6dfadd2917ec381157368c8dcb4a027728547adb3c  remind-05.01.01.tar.gz
"
