# Contributor: Matthieu Monnier <matthieu.monnier@enalean.com>
# Maintainer: Matthieu Monnier <matthieu.monnier@enalean.com>
pkgname=timew
pkgver=1.0.0
pkgrel=0
pkgdesc="Timewarrior is a command line time tracking application."
url="http://taskwarrior.org/"
arch="all"
license="MIT"
depends=""
makedepends="cmake"
install=""
subpackages="$pkgname-doc"
source="http://taskwarrior.org/download/$pkgname-$pkgver.tar.gz
	musl_limits.patch"

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

build() {
	cd "$builddir"
	cmake . -DCMAKE_BUILD_TYPE=release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		|| return 1
	make || return 1
}

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

sha512sums="0539ff93b2375c154d126c39aa84f21b57b62f51c220c80b2e323a4d6aefd2eda6f87c04112e096222102b019ee3683a78b9ee9d6fbf6736d4a34c529f6152f5  timew-1.0.0.tar.gz
4c59c87d56d5babbe3095cb5c01431dfad703a28332464d71d75cc2a6db5727686680bbd771783797ead3cfcf9597df717198eadfd61421c5b6bca1c0a2f1fd4  musl_limits.patch"
