# Contributor: Łukasz Jendrysik # Contributor: Bartłomiej Piotrowski # Maintainer: Roberto Oliveira pkgname=calcurse pkgver=4.8.1 pkgrel=0 pkgdesc="A text-based personal organizer" url="https://calcurse.org/" license="BSD-2-Clause" arch="all" makedepends="ncurses-dev" checkdepends="tzdata" subpackages="$pkgname-dbg $pkgname-doc $pkgname-caldav:caldav:noarch" source=" https://calcurse.org/files/calcurse-$pkgver.tar.gz 0001-Fix-segfault-when-importing-iCal-files.patch " build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-nls \ --enable-docs \ --without-asciidoc make } check() { make -j1 -C "$builddir" check } package() { make DESTDIR="$pkgdir" install } caldav() { pkgdesc="CalDAV synchronization support for calcurse" depends=" $pkgname=$pkgver-r$pkgrel python3 py3-httplib2 " amove usr/bin/calcurse-caldav } sha512sums=" a0a0bcfceb28a4e363168711a3c2de8f6e94d7f12aa78ff40f157c247ea6a41646bd218a1defba2d128b131ed0ab71c4d417820a0af0adbaa215011b11f0a040 calcurse-4.8.1.tar.gz 91d7cdfa8c890eb5782171a46e70896a81893ca477499fdbe9f6683af376043ee7fe3172ad90f5db1e08c43a11441504ad552083ea8d42dc9d88267a483e7e58 0001-Fix-segfault-when-importing-iCal-files.patch "