[arch-commits] Commit in wakatime/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 18:34:53 UTC 2020
Date: Thursday, November 12, 2020 @ 18:34:53
Author: felixonmars
Revision: 753125
archrelease: copy trunk to community-staging-any
Added:
wakatime/repos/community-staging-any/
wakatime/repos/community-staging-any/PKGBUILD
(from rev 753124, wakatime/trunk/PKGBUILD)
wakatime/repos/community-staging-any/literal_comparison.patch
(from rev 753124, wakatime/trunk/literal_comparison.patch)
--------------------------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
literal_comparison.patch | 12 ++++++++++++
2 files changed, 46 insertions(+)
Copied: wakatime/repos/community-staging-any/PKGBUILD (from rev 753124, wakatime/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 18:34:53 UTC (rev 753125)
@@ -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=4
+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}"/
+}
Copied: wakatime/repos/community-staging-any/literal_comparison.patch (from rev 753124, wakatime/trunk/literal_comparison.patch)
===================================================================
--- community-staging-any/literal_comparison.patch (rev 0)
+++ community-staging-any/literal_comparison.patch 2020-11-12 18:34:53 UTC (rev 753125)
@@ -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