summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Tas2020-10-19 18:54:42 +0200
committerSimon Tas2020-10-19 18:54:42 +0200
commit4fea3d4971d0deb96273a8857f7e113eee3e8d06 (patch)
tree86f7ce0d4ab3847fdf58d1b13be7c5d7dbd7cb45
parent543fd881d6244889f815472a15d263bd59df8f42 (diff)
downloadaur-4fea3d4971d0deb96273a8857f7e113eee3e8d06.tar.gz
added patch
-rw-r--r--.SRCINFO6
-rw-r--r--22.patch25
-rw-r--r--PKGBUILD15
3 files changed, 40 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 609965312ac..8868734f61c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = covid19-cli-git
pkgdesc = Corona Virus (Covid 19) BASH Tracking CLI
- pkgver = 0.2.0.r0.g6632ea4
- pkgrel = 1
+ pkgver = 0.2.4.r0.g84ced76
+ pkgrel = 2
url = https://github.com/garrylachman/covid19-cli
arch = any
license = MIT
@@ -9,7 +9,9 @@ pkgbase = covid19-cli-git
provides = covid19-cli
conflicts = covid19-cli
source = covid19-cli::git+https://github.com/garrylachman/covid19-cli
+ source = 22.patch
md5sums = SKIP
+ md5sums = 9bb5dadbdae9b5b3a6ff14aa1574dfcd
pkgname = covid19-cli-git
diff --git a/22.patch b/22.patch
new file mode 100644
index 00000000000..2ea39defc1e
--- /dev/null
+++ b/22.patch
@@ -0,0 +1,25 @@
+From d55b8e9b4446ddea80d4cdc2035ce2134a1eaa44 Mon Sep 17 00:00:00 2001
+From: "miguel.hernandez" <miguel.hernandez@peopleconnect.us>
+Date: Mon, 10 Aug 2020 14:10:57 -0500
+Subject: [PATCH] Change API endpoints to the newest versions. Old ones are
+ deprecated.
+
+---
+ src/defines.sh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/defines.sh b/src/defines.sh
+index 9c3e8b2..ac797f3 100644
+--- a/src/defines.sh
++++ b/src/defines.sh
+@@ -1,6 +1,6 @@
+ VERSION="0.2.4"
+
+ BASE_API="https://corona.lmao.ninja"
+-API_TOTAL_ENDPOINT="$BASE_API/all"
+-API_ALL_COUNTRIES_ENDPOINT="$BASE_API/countries"
+-API_HISTORICAL_COUNTRIES_ENDPOINT="$BASE_API/v2/historical"
+\ No newline at end of file
++API_TOTAL_ENDPOINT="$BASE_API/v3/covid-19/all"
++API_ALL_COUNTRIES_ENDPOINT="$BASE_API/v3/covid-19/countries"
++API_HISTORICAL_COUNTRIES_ENDPOINT="$BASE_API/v3/covid-19/historical"
diff --git a/PKGBUILD b/PKGBUILD
index 90744f8efe1..bda59b93d73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Simon Tas <simon.tas.st@gmail.com>
pkgname="covid19-cli-git"
_pkgname="covid19-cli"
-pkgver=0.2.0.r0.g6632ea4
-pkgrel=1
+pkgver=0.2.4.r0.g84ced76
+pkgrel=2
pkgdesc="Corona Virus (Covid 19) BASH Tracking CLI"
arch=('any')
url="https://github.com/garrylachman/${_pkgname}"
@@ -10,14 +10,21 @@ license=('MIT')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=('jq')
-source=("${_pkgname}::git+https://github.com/garrylachman/${_pkgname}")
-md5sums=('SKIP')
+source=("${_pkgname}::git+https://github.com/garrylachman/${_pkgname}"
+ "22.patch")
+md5sums=('SKIP'
+ '9bb5dadbdae9b5b3a6ff14aa1574dfcd')
pkgver() {
cd "$srcdir/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
+prepare() {
+ cd "$srcdir/${_pkgname}"
+ git apply "$srcdir/22.patch"
+}
+
build() {
cd "$srcdir/${_pkgname}"
make build