summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Tas2020-03-22 18:48:19 +0100
committerSimon Tas2020-03-22 18:48:19 +0100
commit071cd8ce51f66378fa015c3bbfbb0f60d5945976 (patch)
tree022b44c56ab6fc6cb87776dd55964a68ffe87c42
downloadaur-071cd8ce51f66378fa015c3bbfbb0f60d5945976.tar.gz
initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD30
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f6d76ebee85
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = covid19-cli-git
+ pkgdesc = Corona Virus (Covid 19) BASH Tracking CLI
+ pkgver = 0.1.6.r0.g0ea469c
+ pkgrel = 1
+ url = https://github.com/garrylachman/covid19-cli
+ arch = any
+ license = MIT
+ provides = covid19-cli
+ conflicts = covid19-cli
+ source = covid19-cli::git+https://github.com/garrylachman/covid19-cli
+ md5sums = SKIP
+
+pkgname = covid19-cli-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f8b152cc4cc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Simon Tas <simon.tas.st@gmail.com>
+# Contributor: Mark Wagie <mark.wagie@tutanota.com>
+pkgname="covid19-cli-git"
+_pkgname="covid19-cli"
+pkgver=0.1.6.r0.g0ea469c
+pkgrel=1
+pkgdesc="Corona Virus (Covid 19) BASH Tracking CLI"
+arch=('any')
+url="https://github.com/garrylachman/${_pkgname}"
+license=('MIT')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/garrylachman/${_pkgname}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "$srcdir/${_pkgname}"
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
+
+ install -dm755 "${pkgdir}/usr/bin"
+ install -Dm755 "${_pkgname}.sh" "$pkgdir/usr/bin/${_pkgname}"
+}
+
+