# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=orage
pkgver=4.12.1
pkgrel=1
pkgdesc="A simple calendar application with reminders for Xfce"
url="https://xfce.org/projects/"
arch="all"
license="GPL-2.0"
subpackages="$pkgname-doc $pkgname-lang"
depends="hicolor-icon-theme"
makedepends="xfce4-panel-dev libnotify-dev libxfce4ui-dev libical-dev popt-dev"
install=
source="http://archive.xfce.org/src/apps/orage/${pkgver%.*}/orage-$pkgver.tar.bz2"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="2b7f5d38cb5c6edbcc65d0f52a742e46  orage-4.12.1.tar.bz2"
sha256sums="3cf9aa441ae83c8688865f82217025cdf3ebaa152cce4571777b8c2aa8dd9062  orage-4.12.1.tar.bz2"
sha512sums="3fec0201171140586cdc9bcf151450a7086515e18b5815afe4fe4c4726ba554c50582b0479e52985b330140c51b7233ef81f678f986f848afbeee74c66b2d196  orage-4.12.1.tar.bz2"
