aboutsummaryrefslogtreecommitdiffstats
path: root/main/task/APKBUILD
blob: adc6d2103fd96702361d7166ff5e546e2b394716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=task
pkgver=2.2.0
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 util-linux-dev"
install=""
subpackages="$pkgname-doc"
source="http://taskwarrior.org/download/task-$pkgver.tar.gz"

_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="eb5af01b51b90e01b574464a5d11d4e9  task-2.2.0.tar.gz"
sha256sums="39e25dd285e6bc8474337a5868cb2ec55675978fa1f08c802e6da58b4181ee14  task-2.2.0.tar.gz"
sha512sums="16ff1ccd037d62fc99ea0a31647714d3ccf8a90948b67d845d55e08e4bf49bb6a7f69f7464f485093abeff0672f17dc5f6d4efd96d2e447316975d185082f862  task-2.2.0.tar.gz"