aur/PKGBUILD
2022-04-12 19:06:52 +00:00

25 lines
904 B
Bash

# Maintainer: Kamack38 <kamack38.biznes@gmail.com>
_pkgname='oh-my-posh'
pkgname="${_pkgname}-bin"
pkgver=7.61.0
pkgrel=1
pkgdesc="A prompt theme engine for any shell."
arch=('x86_64')
url="https://github.com/JanDeDobbeleer/oh-my-posh"
license=('MIT')
makedepends=('curl')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64")
sha256sums=('7ba275ed866853b0add74ef1636551f1ad6f5f8e33aaace2937c71671746463f')
pkgver() {
curl --silent -L "https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' |
sed 's/v//'
}
package() {
install -Dm 755 posh-linux-amd64 "${pkgdir}/usr/bin/oh-my-posh"
}