diff options
author | libele | 2023-02-21 08:09:21 -0600 |
---|---|---|
committer | libele | 2023-02-21 08:09:21 -0600 |
commit | 6ffb7613b7fbccaa84fbb263ecc233cbbf4938d0 (patch) | |
tree | 9d6d815ba17f529d4aa5aecd6716a1354c9be1c6 | |
download | aur-ansiweather-git.tar.gz |
version 1.19.0.r2.g8443fe3
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f76bc0d8fd77 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ansiweather-git + pkgdesc = Weather in terminal, with ANSI colors and Unicode symbols (git version) + pkgver = 1.19.0.r2.g8443fe3 + pkgrel = 1 + url = https://github.com/fcambus/ansiweather + arch = any + license = BSD + makedepends = git + depends = bc + depends = curl + depends = jq + optdepends = wget: alternative fetch command + provides = ansiweather + conflicts = ansiweather + source = git+https://github.com/fcambus/ansiweather + md5sums = SKIP + +pkgname = ansiweather-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..955c12b0232d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: libele <libele@disroot.org> + +_pkgname=ansiweather +pkgname=ansiweather-git +pkgver=1.19.0.r2.g8443fe3 +pkgrel=1 +pkgdesc="Weather in terminal, with ANSI colors and Unicode symbols (git version)" +arch=('any') +url="https://github.com/fcambus/ansiweather" +license=('BSD') +depends=('bc' 'curl' 'jq') +makedepends=('git') +optdepends=('wget: alternative fetch command') +provides=('ansiweather') +conflicts=('ansiweather') +source=("git+https://github.com/fcambus/ansiweather") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$_pkgname" + install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname" + install -Dm644 "$_pkgname.1" "$pkgdir/usr/share/man/man1/$_pkgname.1" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" +} |