aboutsummaryrefslogblamecommitdiffstats
path: root/main/task/APKBUILD
blob: e43004d9a7a6cef0ac5f18ff740136a61dfa4620 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                   
            
        





                                           
                                                          

                          
                                                            

                      

























                                                                        
                                                            
                                                 
                                                                                               
                                                                                 
                                                                                                                                                               
                                                                                                                                                 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=task
pkgver=2.5.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="https://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="bcd984a00d6d1eb6b40faf567419f784  task-2.5.1.tar.gz
b26dba3e7e248ec8c22d820bc7b269c4  musl-fix.patch"
sha256sums="d87bcee58106eb8a79b850e9abc153d98b79e00d50eade0d63917154984f2a15  task-2.5.1.tar.gz
49b486a30c18660bb6b2544e920f0015db81a8cebee1bc22a3684ada2c0430ab  musl-fix.patch"
sha512sums="ec17e5cefff55ecd2c1cb717801c02683d94030906c8d86450c3c79c0bc5a18d82559a5e9e26a91411a1025a241b78ddbc1de51cafc1a2dd531e8229e5e61c10  task-2.5.1.tar.gz
f82f9883ef6c885635890453fbb5c1dc4d4bf4b69926962a643bcaeadeb80874200329c3916b9796d26fd5f28eb9ad20f50fe7e4adc9f9ca635aa4b50be81911  musl-fix.patch"