aboutsummaryrefslogtreecommitdiffstats
path: root/main/task/APKBUILD
blob: d501fc8cc7685726539aedf0d5bd5de92131d74d (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
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=task
pkgver=2.4.2
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="4a56aa480dc5e17f6294acd5f8acf36c  task-2.4.2.tar.gz
1e826dcc0aa6a0c08a6e2b7c450945cd  musl-fix.patch"
sha256sums="271eca336ff97f96e646f5dd5a774ef3f21f7eab7f9bcc487ea0022cff3fa50d  task-2.4.2.tar.gz
60ece7d726ad383434a802dbfb6d4479200457031e879af0c95e3dd416d562fb  musl-fix.patch"
sha512sums="a4be5b24fe65e7d08e667ac631d91a025b28a3e3916b1d3ebb74ac0fbafa55f860adf4f723a1321281c847123ae6be257f284c02c23f7aab4e08cc7ae82ea174  task-2.4.2.tar.gz
d9e704d47cb1e5a151b39d2733b40fe9a8503d08329bbc4dbe385c59b0dfe6fb60f59888aa10f5139937cd0012326606c9edbdd0677af444d1e66d8c867cceb7  musl-fix.patch"