[arch-commits] Commit in timew/repos (6 files)

Jelle van der Waa jelle at archlinux.org
Sun Sep 4 12:54:38 UTC 2016


    Date: Sunday, September 4, 2016 @ 12:54:38
  Author: jelle
Revision: 188526

archrelease: copy trunk to community-x86_64, community-i686

Added:
  timew/repos/community-i686/
  timew/repos/community-i686/PKGBUILD
    (from rev 188525, timew/trunk/PKGBUILD)
  timew/repos/community-i686/timew.install
    (from rev 188525, timew/trunk/timew.install)
  timew/repos/community-x86_64/
  timew/repos/community-x86_64/PKGBUILD
    (from rev 188525, timew/trunk/PKGBUILD)
  timew/repos/community-x86_64/timew.install
    (from rev 188525, timew/trunk/timew.install)

--------------------------------+
 community-i686/PKGBUILD        |   42 +++++++++++++++++++++++++++++++++++++++
 community-i686/timew.install   |    7 ++++++
 community-x86_64/PKGBUILD      |   42 +++++++++++++++++++++++++++++++++++++++
 community-x86_64/timew.install |    7 ++++++
 4 files changed, 98 insertions(+)

Copied: timew/repos/community-i686/PKGBUILD (from rev 188525, timew/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-09-04 12:54:38 UTC (rev 188526)
@@ -0,0 +1,42 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# 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=('x86_64' 'i686')
+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, fixed upstream in 1.1.0
+    # https://git.tasktools.org/projects/TM/repos/timew/commits/5ddef40d8272be870e05ee3753dcf3bbe35e2bd9
+    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"
+}

Copied: timew/repos/community-i686/timew.install (from rev 188525, timew/trunk/timew.install)
===================================================================
--- community-i686/timew.install	                        (rev 0)
+++ community-i686/timew.install	2016-09-04 12:54:38 UTC (rev 188526)
@@ -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"
+}

Copied: timew/repos/community-x86_64/PKGBUILD (from rev 188525, timew/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-09-04 12:54:38 UTC (rev 188526)
@@ -0,0 +1,42 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# 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=('x86_64' 'i686')
+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, fixed upstream in 1.1.0
+    # https://git.tasktools.org/projects/TM/repos/timew/commits/5ddef40d8272be870e05ee3753dcf3bbe35e2bd9
+    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"
+}

Copied: timew/repos/community-x86_64/timew.install (from rev 188525, timew/trunk/timew.install)
===================================================================
--- community-x86_64/timew.install	                        (rev 0)
+++ community-x86_64/timew.install	2016-09-04 12:54:38 UTC (rev 188526)
@@ -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