diff --git a/.SRCINFO b/.SRCINFO index 28c46fb42a9..c84c238d4bf 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,16 +1,26 @@ pkgbase = oh-my-posh-bin pkgdesc = A prompt theme engine for any shell. - pkgver = 7.67.0 + pkgver = 7.72.4 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 - source = https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v7.67.0/posh-linux-amd64 - sha256sums = aeb46c8074de88338bb9061df80d50d780972ef088835bc439b616be2dab58df + noextract = themes.zip + source = https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v7.72.4/themes.zip + sha256sums = 61c76c97404d0eb4bc310ad5bd19648d67118b6ef6aa478fcf5101009d0629c4 + source_x86_64 = https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v7.72.4/posh-linux-amd64 + sha256sums_x86_64 = 46d2d0bf64c341863a1444e89222269a78afacd65e421b8ea7ee870c5392a17c + source_armv7h = https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v7.72.4/posh-linux-arm + sha256sums_armv7h = 54450006d44f87fc367f252f8919cae92dd945970ea82e60a44f19e0c8b283e6 + source_aarch64 = https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v7.72.4/posh-linux-arm64 + sha256sums_aarch64 = 2a5102cad808d8fd768d62a12415b70ba1f72ced96fceab7af0e0414493c9c0e pkgname = oh-my-posh-bin diff --git a/PKGBUILD b/PKGBUILD index 9340d5f3cd5..0cb38e52c83 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,14 +4,21 @@ pkgname="${_pkgname}-bin" pkgver=7.72.4 pkgrel=1 pkgdesc="A prompt theme engine for any shell." -arch=('x86_64') +arch=('x86_64' 'armv7h' 'aarch64') url="https://github.com/JanDeDobbeleer/oh-my-posh" license=('MIT') -makedepends=('curl' 'grep' 'sed') +makedepends=('curl' 'grep' 'sed' 'unzip') provides=("${_pkgname}") conflicts=("${_pkgname}") -source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64") -sha256sums=('46d2d0bf64c341863a1444e89222269a78afacd65e421b8ea7ee870c5392a17c') +source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/themes.zip") +source_x86_64=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64") +source_armv7h=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-arm") +source_aarch64=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-arm64") +noextract=('themes.zip') +sha256sums=('61c76c97404d0eb4bc310ad5bd19648d67118b6ef6aa478fcf5101009d0629c4') +sha256sums_x86_64=('46d2d0bf64c341863a1444e89222269a78afacd65e421b8ea7ee870c5392a17c') +sha256sums_armv7h=('54450006d44f87fc367f252f8919cae92dd945970ea82e60a44f19e0c8b283e6') +sha256sums_aarch64=('2a5102cad808d8fd768d62a12415b70ba1f72ced96fceab7af0e0414493c9c0e') pkgver() { curl --silent -L "https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest" | # Get latest release from GitHub api @@ -21,5 +28,14 @@ pkgver() { } package() { - install -Dm 755 posh-linux-amd64 "${pkgdir}/usr/bin/oh-my-posh" + if [[ "$CARCH" = 'x86_64' ]]; then + install -Dm 755 posh-linux-amd64 "${pkgdir}/usr/bin/oh-my-posh" + elif [[ "$CARCH" = 'armv7h' ]]; then + install -Dm 755 posh-linux-arm "${pkgdir}/usr/bin/oh-my-posh" + elif [[ "$CARCH" = 'aarch64' ]]; then + install -Dm 755 posh-linux-arm64 "${pkgdir}/usr/bin/oh-my-posh" + fi + + mkdir -p "${pkgdir}/usr/share/oh-my-posh/themes" + unzip "${srcdir}/themes.zip" -d "${pkgdir}/usr/share/oh-my-posh/themes" }