blob: a134fc13dc378bf38e1e1fde8d64dd7269d7080b (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Tom van der Lee <t0m.vd.l33@gmail.com>
pkgname=liquidprompt
pkgver=2.2.1
_pkgver=$pkgver
pkgrel=2
pkgdesc="A useful adaptive prompt for Bash & Zsh"
arch=("any")
url="https://github.com/nojhan/liquidprompt"
license=("AGPL3")
conflicts=("liquidprompt-git")
depends=("ncurses"
"grep"
"gawk"
"sed"
"procps-ng"
"inetutils"
"coreutils")
optdepends=("acpi: Battery and temperature status"
"lm_sensors: Temperature status"
"screen: Show detached GNU Screen session status"
"tmux: Show detached tmux session status"
"git: Show Git repository status"
"mercurial: Show Mercurial repository status"
"subversion: Show Subversion repository status"
"breezy: Show Bazaar repository status"
"fossil: Show Fossil repository status"
"kubectl: Show Kubernetes context"
"aws-cli: Show Amazon Web Services profile"
"docker: Show Docker status"
"podman: Show Podman status"
"lxc: Show LXC status"
"python-nodeenv: Show nodeenv virtual environment status"
"nvm: Show NVM virtual environment status"
"terraform: Show Terraform workspace status"
"python-virtualenv: Show Python virtual environment status")
source=("https://github.com/nojhan/liquidprompt/archive/refs/tags/v${_pkgver//_/-}.tar.gz")
sha256sums=('56e9ee1c057638795eea31c7d91a81b8e0c4afd5b57c7dc3a5e3df98fd89b483')
build () {
cd "${pkgname}-${_pkgver//_/-}"
./tools/config-from-doc.sh > liquidpromptrc-dist
}
package() {
cd "${pkgname}-${_pkgver//_/-}"
install -Dm755 liquidprompt "${pkgdir}/usr/bin/liquidprompt"
install -Dm644 liquidpromptrc-dist "${pkgdir}/etc/liquidpromptrc"
install -dm755 "${pkgdir}/usr/share/liquidprompt/themes"
for theme in themes/*; do
theme_name=$(basename "$theme")
cp -R "$theme" "${pkgdir}/usr/share/liquidprompt/themes/$theme_name"
done
}
# vim: set ts=8 sw=8 tw=0 noet :
|