aboutsummaryrefslogtreecommitdiffstats
path: root/main/task/APKBUILD
blob: 56ace83555e003e6c3dcdb04d00520e2cb4f4d4b (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.5.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 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="bca2a8a6f7727ccbcefd5e190d935910  task-2.5.0.tar.gz
b26dba3e7e248ec8c22d820bc7b269c4  musl-fix.patch"
sha256sums="4d8e67415a6993108c11b8eeef99b76a991af11b22874adbb7ae367e09334636  task-2.5.0.tar.gz
49b486a30c18660bb6b2544e920f0015db81a8cebee1bc22a3684ada2c0430ab  musl-fix.patch"
sha512sums="911ed33553c71d0578dda20774ff1c5762700957ed637ed849ef51c4cd00a53feabc18c477dbc4b618371d9ddc8fec71795f96d8474acbec8a91be8bb1ff1bfd  task-2.5.0.tar.gz
f82f9883ef6c885635890453fbb5c1dc4d4bf4b69926962a643bcaeadeb80874200329c3916b9796d26fd5f28eb9ad20f50fe7e4adc9f9ca635aa4b50be81911  musl-fix.patch"