blob: 955c12b0232de8fcb043e1aca619b306cf4c7048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"
}
|