Skip to content
Snippets Groups Projects
Commit 68435f9e authored by Orhun Parmaksız's avatar Orhun Parmaksız
Browse files

upstream release

parent 04c83d06
No related branches found
Tags 20171213
No related merge requests found
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
pkgname=taskwarrior-tui
pkgver=0.13.33
pkgver=0.13.34
pkgrel=1
pkgdesc="A terminal user interface for taskwarrior"
arch=('x86_64')
......@@ -9,24 +9,33 @@ url="https://github.com/kdheepak/taskwarrior-tui"
license=('MIT')
depends=('task')
makedepends=('rust' 'git' 'pandoc')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"git+https://github.com/kdheepak/taskwarrior-testdata")
sha256sums=('7a3e3808455db7d9d70fc3eb54dfd938f90ce481b2b56045014a8ebe20453083'
'SKIP')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
#"$pkgname-fix-tests.patch::$url/commit/0890cdf037bb6ebb7beb8b5b40137cf1089354fa.patch"
#"git+https://github.com/kdheepak/taskwarrior-testdata")
sha256sums=('6d5c5a67420204f603e61054382fb39432098fd2daa758029b5ac848a9356024')
#'afe335dab30bee0104d60acd8231dd2d2e973ec1b9a24ac760f2dfd67dccad24'
#'SKIP')
build() {
prepare() {
cd "$pkgname-$pkgver"
cargo build --release --locked --all-features
pandoc "docs/$pkgname.1.md" --standalone --to=man -o "docs/$pkgname.1"
cargo fetch --locked
#patch -Np1 < "../$pkgname-fix-tests.patch"
}
check() {
build() {
cd "$pkgname-$pkgver"
export TASKRC="../taskwarrior-testdata/.taskrc"
export TASKDATA="../taskwarrior-testdata/.task"
cargo test --release --locked --all-features
cargo build --release --frozen --all-features
pandoc "docs/$pkgname.1.md" --standalone --to=man -o "docs/$pkgname.1"
}
# https://github.com/kdheepak/taskwarrior-tui/issues/277
#check() {
# cd "$pkgname-$pkgver"
# export TASKRC="../taskwarrior-testdata/.taskrc"
# export TASKDATA="../taskwarrior-testdata/.task"
# cargo test --frozen --all-features
#}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment