Compare commits

...

No commits in common. "main" and "oh-my-posh-bin" have entirely different histories.

3 changed files with 74 additions and 3 deletions

28
.SRCINFO Normal file
View File

@ -0,0 +1,28 @@
pkgbase = oh-my-posh-bin
pkgdesc = A prompt theme engine for any shell.
pkgver = 8.30.0
pkgrel = 1
url = https://github.com/JanDeDobbeleer/oh-my-posh
arch = x86_64
arch = armv7h
arch = aarch64
license = MIT
makedepends = curl
makedepends = grep
makedepends = sed
makedepends = unzip
provides = oh-my-posh
conflicts = oh-my-posh
noextract = themes.zip
source = themes-58ba9a9a18b0d81c2e20e09eecb585894ea4a3ac917c69c84d983a729560a462.zip::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v8.30.0/themes.zip
source = LICENSE-a5308c4e51268229a039ec4ec9a251a4cdb89d9380383e6e13aeba64a74f19ad::https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/v8.30.0/COPYING
sha256sums = 58ba9a9a18b0d81c2e20e09eecb585894ea4a3ac917c69c84d983a729560a462
sha256sums = a5308c4e51268229a039ec4ec9a251a4cdb89d9380383e6e13aeba64a74f19ad
source_x86_64 = posh-linux-amd64-7d13e988daddfe139b7b061ad6b04851852650084fb806ac686dfb8cb974ee78::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v8.30.0/posh-linux-amd64
sha256sums_x86_64 = 7d13e988daddfe139b7b061ad6b04851852650084fb806ac686dfb8cb974ee78
source_armv7h = posh-linux-arm-7ad1c0165143604072964d14ee6fe1cd1e8c3fea01ae46d6e86fad526a740873::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v8.30.0/posh-linux-arm
sha256sums_armv7h = 7ad1c0165143604072964d14ee6fe1cd1e8c3fea01ae46d6e86fad526a740873
source_aarch64 = posh-linux-arm64-fd47d045e47931507220be9b61e9d641157080ce813e6040096ce5c21f612c4c::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v8.30.0/posh-linux-arm64
sha256sums_aarch64 = fd47d045e47931507220be9b61e9d641157080ce813e6040096ce5c21f612c4c
pkgname = oh-my-posh-bin

46
PKGBUILD Normal file
View File

@ -0,0 +1,46 @@
# Maintainer: Kamack38 <kamack38.biznes@gmail.com>
_pkgname='oh-my-posh'
pkgname="${_pkgname}-bin"
pkgver=8.30.0
pkgrel=1
pkgdesc="A prompt theme engine for any shell."
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/JanDeDobbeleer/oh-my-posh"
license=('MIT')
makedepends=('curl' 'grep' 'sed' 'unzip')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
sha256sums=('58ba9a9a18b0d81c2e20e09eecb585894ea4a3ac917c69c84d983a729560a462'
'a5308c4e51268229a039ec4ec9a251a4cdb89d9380383e6e13aeba64a74f19ad')
sha256sums_x86_64=('7d13e988daddfe139b7b061ad6b04851852650084fb806ac686dfb8cb974ee78')
sha256sums_armv7h=('7ad1c0165143604072964d14ee6fe1cd1e8c3fea01ae46d6e86fad526a740873')
sha256sums_aarch64=('fd47d045e47931507220be9b61e9d641157080ce813e6040096ce5c21f612c4c')
source=(
"themes-${sha256sums[0]}.zip::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/themes.zip"
"LICENSE-${sha256sums[1]}::https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/v${pkgver}/COPYING"
)
source_x86_64=("posh-linux-amd64-${sha256sums_x86_64}::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64")
source_armv7h=("posh-linux-arm-${sha256sums_armv7h}::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-arm")
source_aarch64=("posh-linux-arm64-${sha256sums_aarch64}::https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-arm64")
noextract=('themes.zip')
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 644 "LICENSE-${sha256sums[1]}" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
if [[ "$CARCH" = 'x86_64' ]]; then
install -Dm 755 "${srcdir}/posh-linux-amd64-${sha256sums_x86_64}" "${pkgdir}/usr/bin/oh-my-posh"
elif [[ "$CARCH" = 'armv7h' ]]; then
install -Dm 755 "${srcdir}/posh-linux-arm-${sha256sums_armv7h}" "${pkgdir}/usr/bin/oh-my-posh"
elif [[ "$CARCH" = 'aarch64' ]]; then
install -Dm 755 "${srcdir}/posh-linux-arm64-${sha256sums_aarch64}" "${pkgdir}/usr/bin/oh-my-posh"
fi
mkdir -p "${pkgdir}/usr/share/oh-my-posh/themes"
unzip "${srcdir}/themes-${sha256sums}.zip" -d "${pkgdir}/usr/share/oh-my-posh/themes"
}

View File

@ -1,3 +0,0 @@
# aur.git
This is a experimental mirror of the aur.git repository backing [the AUR](https://aur.archlinux.org).