diff options
author | Wu Zhenyu | 2023-08-26 16:11:04 +0800 |
---|---|---|
committer | Wu Zhenyu | 2023-08-26 16:11:04 +0800 |
commit | 923f9eb1871a72364f080f7bd9be61fabcabcb1f (patch) | |
tree | 46daaaf38c6a3d81d685fd79f4761955f1d61013 | |
download | aur-923f9eb1871a72364f080f7bd9be61fabcabcb1f.tar.gz |
:tada: Initial
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 26 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..86977c2e249b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = bash-prompt-style-git + pkgdesc = A powerlevel10k-like prompt style of bash. + pkgver = r1.8cb9cb0 + pkgrel = 1 + url = https://github.com/Freed-Wu/bash-prompt-style + arch = any + license = GPL3 + makedepends = git + source = git+https://github.com/Freed-Wu/bash-prompt-style#tag=8cb9cb0721d1774d1782ba984e09b3c9ddf169a7 + sha256sums = SKIP + +pkgname = bash-prompt-style-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4b62e7679d6f --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/* +!/.gitignore +!/PKGBUILD +!/.SRCINFO +!/*.install +!/nvchecker.toml diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b17600fa7a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# shellcheck shell=bash disable=SC2034,SC2154 +# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu> +_pkgname=bash-prompt-style +pkgname=$_pkgname-git +pkgver=r1.8cb9cb0 +pkgrel=1 +pkgdesc="A powerlevel10k-like prompt style of bash." +arch=(any) +url=https://github.com/Freed-Wu/$_pkgname +license=(GPL3) +depends=(zsh-theme-powerlevel10k) +makedepends=(git) +source=("git+$url#tag=4a37921e91595069c7b088bb0e0a677bd9f65780") +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-style.sh -t "$pkgdir/usr/share/$_pkgname" +} |