[arch-commits] Commit in (5 files)

Konstantin Gizdov kgizdov at archlinux.org
Tue Apr 21 13:43:58 UTC 2020


    Date: Tuesday, April 21, 2020 @ 13:43:58
  Author: kgizdov
Revision: 617360

initial release

Added:
  wakatime/
  wakatime/repos/
  wakatime/trunk/
  wakatime/trunk/PKGBUILD
  wakatime/trunk/literal_comparison.patch

--------------------------+
 PKGBUILD                 |   34 ++++++++++++++++++++++++++++++++++
 literal_comparison.patch |   12 ++++++++++++
 2 files changed, 46 insertions(+)

Added: wakatime/trunk/PKGBUILD
===================================================================
--- wakatime/trunk/PKGBUILD	                        (rev 0)
+++ wakatime/trunk/PKGBUILD	2020-04-21 13:43:58 UTC (rev 617360)
@@ -0,0 +1,34 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Eric Berquist <eric dot berquist at gmail dot com>
+# Contributor: Siôn le Roux <sinisterstuf at gmail.com>
+
+pkgname=wakatime
+pkgver=13.0.7
+pkgrel=3
+pkgdesc="Command line interface used by all WakaTime text editor plugins"
+arch=('any')
+url="https://github.com/${pkgname}/${pkgname}"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=("${pkgname}-${pkgver}::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
+        'literal_comparison.patch')
+sha256sums=('d75738130a8c982b0bf8ce20601a7fc86cf3b4bf00d3662dee260eb2b07d826a'
+            'ef526daab8b9656b33893bbeb43d9e9d96ad81a01446bbe0d3035170a7b80163')
+
+prepare () {
+  cd "$srcdir/$pkgname-$pkgver"
+  patch -Np1 -i "${srcdir}/literal_comparison.patch"
+}
+
+build () {
+  cd "$srcdir/$pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"/
+}

Added: wakatime/trunk/literal_comparison.patch
===================================================================
--- wakatime/trunk/literal_comparison.patch	                        (rev 0)
+++ wakatime/trunk/literal_comparison.patch	2020-04-21 13:43:58 UTC (rev 617360)
@@ -0,0 +1,12 @@
+diff -aur --color wakatime-13.0.7-old/wakatime/packages/tzlocal/unix.py wakatime-13.0.7-new/wakatime/packages/tzlocal/unix.py
+--- wakatime-13.0.7-old/wakatime/packages/tzlocal/unix.py	2020-02-13 19:11:46.000000000 +0200
++++ wakatime-13.0.7-new/wakatime/packages/tzlocal/unix.py	2020-04-21 16:25:15.100231033 +0300
+@@ -97,7 +97,7 @@
+     if os.path.exists(tzpath) and os.path.islink(tzpath):
+         tzpath = os.path.realpath(tzpath)
+         start = tzpath.find("/")+1
+-        while start is not 0:
++        while start != 0:
+             tzpath = tzpath[start:]
+             try:
+                 return pytz.timezone(tzpath)



More information about the arch-commits mailing list