diff options
author | Alexey Peschany | 2024-01-30 11:51:37 +0300 |
---|---|---|
committer | Alexey Peschany | 2024-01-30 11:51:37 +0300 |
commit | c6985d20bebc2469081f5cae77d17c51594dabf9 (patch) | |
tree | e23efd54d17044784c636ad526dfab2f731a755d | |
parent | 4d18229828af92e529138f312ba3201cc2640233 (diff) | |
download | aur-spaceship-prompt-git.tar.gz |
fix package build and bump version
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | spaceship-prompt-git.install | 5 |
3 files changed, 19 insertions, 20 deletions
@@ -1,8 +1,8 @@ pkgbase = spaceship-prompt-git pkgdesc = A Zsh prompt for Astronauts - pkgver = v3.11.2.r13.g50e371f + pkgver = v4.15.0.r1.gbe826cbe pkgrel = 1 - url = https://denysdovhan.com/spaceship-prompt/ + url = https://spaceship-prompt.sh/ install = spaceship-prompt-git.install arch = any license = MIT @@ -12,10 +12,9 @@ pkgbase = spaceship-prompt-git provides = spaceship-prompt conflicts = spaceship-zsh-theme-git conflicts = spaceship-prompt - source = git+https://github.com/denysdovhan/spaceship-prompt.git + source = git+https://github.com/spaceship-prompt/spaceship-prompt.git source = spaceship-prompt-git.install - md5sums = SKIP - md5sums = bd24fc2d741cb12ba49b36742d879f64 + sha256sums = SKIP + sha256sums = 9fb9218c6498c040461d8d7aa416b2eb9241317b5606e74d1ec1caed0709aaf4 pkgname = spaceship-prompt-git - @@ -1,30 +1,30 @@ -# Maintainer: Dave Kleinschmidt <dave.f.kleinschmidt at gmail dot com> +# Maintainer: Alexey Peschany <archlinux at sandboiii dot xyz> +# Contributor: Dave Kleinschmidt <dave.f.kleinschmidt at gmail dot com> + _pkgname=spaceship-prompt pkgname=$_pkgname-git -pkgver=v3.11.2.r13.g50e371f +pkgver=v4.15.0.r1.gbe826cbe pkgrel=1 epoch= pkgdesc="A Zsh prompt for Astronauts" arch=('any') -url="https://denysdovhan.com/spaceship-prompt/" +url="https://spaceship-prompt.sh/" license=('MIT') depends=('zsh') makedepends=('git') -conflicts=('spaceship-zsh-theme-git' - 'spaceship-prompt') -provides=('spaceship-zsh-theme' - 'spaceship-prompt') +conflicts=('spaceship-zsh-theme-git' 'spaceship-prompt') +provides=('spaceship-zsh-theme' 'spaceship-prompt') install="${pkgname}.install" -source=("git+https://github.com/denysdovhan/${_pkgname}.git" +source=("git+https://github.com/${_pkgname}/${_pkgname}.git" "$pkgname.install") -md5sums=('SKIP' - 'bd24fc2d741cb12ba49b36742d879f64') +sha256sums=('SKIP' + '9fb9218c6498c040461d8d7aa416b2eb9241317b5606e74d1ec1caed0709aaf4') pkgver() { cd "$_pkgname" ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + git describe --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } @@ -40,6 +40,7 @@ package() { find scripts -type f -exec install -D -m644 {} "${pkgdir}/usr/lib/${_pkgname}/{}" \; find sections -type f -exec install -D -m644 {} "${pkgdir}/usr/lib/${_pkgname}/{}" \; install -D -m644 spaceship.zsh "${pkgdir}/usr/lib/${_pkgname}/spaceship.zsh" + install -D -m644 async.zsh "${pkgdir}/usr/lib/${_pkgname}/async.zsh" ln -s spaceship.zsh "${pkgdir}/usr/lib/${_pkgname}/spaceship.zsh-theme" install -d "${pkgdir}/usr/local/share/zsh/site-functions/" diff --git a/spaceship-prompt-git.install b/spaceship-prompt-git.install index 7ac2ddd36cd7..73e1f43f066a 100644 --- a/spaceship-prompt-git.install +++ b/spaceship-prompt-git.install @@ -1,5 +1,4 @@ post_install() { - echo "Add these lines to your .zshrc to enable spaceship: - autoload -U promptinit; promptinit - prompt spaceship" + echo "Add this line to your .zshrc to enable spaceship: + source /usr/lib/spaceship-prompt/spaceship.zsh" } |