Created
June 19, 2018 14:30
-
-
Save noonie2k/4b62d7aacdd69b30f77f10d0b2a220f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 1ecfdd5..f2085be 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,7 +1,7 @@ | |
# Maintainer: David Cao <dcao@protonmail.com> | |
-pkgname=timew-git | |
-pkgver=r2249.fa30f46 | |
-pkgrel=2 | |
+pkgname=timewarrior | |
+pkgver=r2274.ea27d8f | |
+pkgrel=1 | |
pkgdesc="A command-line time tracker (also known as timewarrior)" | |
arch=('i686' 'x86_64') | |
url="https://taskwarrior.org/docs/timewarrior/index.html" | |
@@ -20,12 +20,12 @@ source=('git+https://github.com/GothenburgBitFactory/timewarrior' | |
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP') | |
pkgver() { | |
- cd "${pkgname%-git}" | |
+ cd "$srcdir/$pkgname" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
- cd "${pkgname%-git}" | |
+ cd "$srcdir/$pkgname" | |
git submodule init | |
git config submodule.src/libshared.url "${srcdir}/libshared" | |
git submodule update src/libshared | |
@@ -37,13 +37,13 @@ prepare() { | |
} | |
build() { | |
- cd "${pkgname%-git}" | |
+ cd "$srcdir/$pkgname" | |
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr . | |
make | |
} | |
package() { | |
- cd "${pkgname%-git}" | |
+ cd "$srcdir/$pkgname" | |
make DESTDIR="${pkgdir}/" install | |
install -Dm644 "${srcdir}/on-modify.timewarrior" \ | |
diff --git a/on-modify-python2.patch b/on-modify-python2.patch | |
index 3b5cba4..924c8e6 100644 | |
--- a/on-modify-python2.patch | |
+++ b/on-modify-python2.patch | |
@@ -3,6 +3,6 @@ | |
@@ -1,4 +1,4 @@ | |
-#!/usr/bin/env python | |
+#!/usr/bin/env python2 | |
- ################################################################################ | |
+ ############################################################################### | |
# | |
# Copyright 2015 - 2016, Paul Beckingham, Federico Hernandez. | |
diff --git a/timew-refresh-python2.patch b/timew-refresh-python2.patch | |
index 0208522..ae2089f 100644 | |
--- a/timew-refresh-python2.patch | |
+++ b/timew-refresh-python2.patch | |
@@ -4,6 +4,6 @@ diff -aur timew-old/doc/holidays/refresh timew-0.9.5.alpha/doc/holidays/refresh | |
@@ -1,4 +1,4 @@ | |
-#!/usr/bin/env python | |
+#!/usr/bin/env python2 | |
- ################################################################################ | |
- ## | |
- ## Copyright 2006 - 2016, Paul Beckingham, Federico Hernandez. | |
+ ############################################################################### | |
+ # | |
+ # Copyright 2006 - 2016, Paul Beckingham, Federico Hernandez. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment