# Maintainer: Natanael Copa pkgname=task pkgver=2.4.1 pkgrel=0 pkgdesc="A command-line to do list manager" url="http://taskwarrior.org" arch="all" license="MIT" depends="" depends_dev="" makedepends="$depends_dev cmake gnutls-dev util-linux-dev" install="" subpackages="$pkgname-doc" source="http://taskwarrior.org/download/task-$pkgver.tar.gz musl-fix.patch " _builddir="$srcdir"/task-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make install DESTDIR="$pkgdir" } md5sums="f250f3fb3922e4153c6ad1b1270dceb8 task-2.4.1.tar.gz 1e826dcc0aa6a0c08a6e2b7c450945cd musl-fix.patch" sha256sums="d90e48c64639957b02f6e9a33cddd5411169003ca3b1f9351d0fcf3c3597c2e2 task-2.4.1.tar.gz 60ece7d726ad383434a802dbfb6d4479200457031e879af0c95e3dd416d562fb musl-fix.patch" sha512sums="942e6ccc28094dd542a68f446255bef7e447ba75475a0ecc49f0ad63e37732c52b6598d60d46b76cfa48a6dc0ce9fc4bcb10452ec609a70f4b29ea8726d08c0a task-2.4.1.tar.gz d9e704d47cb1e5a151b39d2733b40fe9a8503d08329bbc4dbe385c59b0dfe6fb60f59888aa10f5139937cd0012326606c9edbdd0677af444d1e66d8c867cceb7 musl-fix.patch"