# Maintainer: Kamack38 _pkgname='oh-my-posh' pkgname="${_pkgname}-bin" pkgver=7.72.4 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' 'grep' 'sed') provides=("${_pkgname}") conflicts=("${_pkgname}") source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64") sha256sums=('46d2d0bf64c341863a1444e89222269a78afacd65e421b8ea7ee870c5392a17c') 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" }