summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cead16c4022d908258ecf45eab1db7e6414a4eb (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
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
_pkgname=bash-prompt
pkgname=$_pkgname-git
pkgver=r12.d472bce
pkgrel=1
pkgdesc="Bash plugin for powerlevel10k style prompt and WakaTime time tracking"
arch=(any)
url=https://github.com/Freed-Wu/$_pkgname
license=(GPL3)
depends=(zsh-theme-powerlevel10k lsb-release procps-ng ncurses)
makedepends=(git)
source=("git+$url#tag=d472bce2ca0593a45c99c7362b4d587a016b5d51")
sha256sums=(SKIP)

pkgver() {
	cd "$_pkgname" || return 1
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$_pkgname" || return 1

	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
	install -Dm644 prompt.sh -t "$pkgdir/usr/share/$_pkgname"
}