[arch-commits] Commit in (5 files)
Jelle van der Waa
jelle at archlinux.org
Fri Sep 2 13:58:16 UTC 2016
Date: Friday, September 2, 2016 @ 13:58:15
Author: jelle
Revision: 188301
initial commit
Added:
timew/
timew/repos/
timew/trunk/
timew/trunk/PKGBUILD
timew/trunk/timew.install
---------------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
timew.install | 7 +++++++
2 files changed, 48 insertions(+)
Added: timew/trunk/PKGBUILD
===================================================================
--- timew/trunk/PKGBUILD (rev 0)
+++ timew/trunk/PKGBUILD 2016-09-02 13:58:15 UTC (rev 188301)
@@ -0,0 +1,41 @@
+# Contributor: Joost Bremmer <toost dot b at gmail dot com>
+
+pkgname=timew
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="A command line time tracking application"
+arch=('i866' 'x86_64')
+url="http://taskwarrior.org/docs/timewarrior/"
+license=('MIT')
+makedepends=('cmake' 'gcc-libs')
+optdepends=('task: Taskwarrior integration')
+provides=('timew')
+conflicts=('timew-git')
+install=$pkgname.install
+source=("http://taskwarrior.org/download/timew-${pkgver}.tar.gz")
+sha256sums=('ac027910e1e8365bdd218a8b42389b26d017d38d3c96516c408db6d5a44e0bb5')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+
+ # Fix Python shebang
+ # FIXME: make the script Python3 compatible.
+ sed -i 's/env python/env python2/g' doc/holidays/refresh
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+}
+
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ make DESTDIR=${pkgdir} install
+
+ # Install the refresh holiday scripts in /usr/bin/ for user convenience.
+ chmod 755 "${pkgdir}/usr/share/doc/timew/doc/holidays/refresh"
+ ln -s "/usr/share/doc/timew/doc/holidays/refresh" "${pkgdir}/usr/bin/timew-refresh-holidays"
+}
Added: timew/trunk/timew.install
===================================================================
--- timew/trunk/timew.install (rev 0)
+++ timew/trunk/timew.install 2016-09-02 13:58:15 UTC (rev 188301)
@@ -0,0 +1,7 @@
+post_install() {
+ echo "You can find the taskwarrior on-modify-hook at:
+ /usr/share/doc/timew/on-modify.timewarrior"
+ echo
+ echo "You can use /usr/bin/timew-refresh-holidays to download holiday schedules"
+ echo "Please see: http://taskwarrior.org/docs/timewarrior/holidays.html for more info"
+}
More information about the arch-commits
mailing list