Package Details: oh-my-posh-bin 19.21.0-1

Git Clone URL: https://aur.archlinux.org/oh-my-posh-bin.git (read-only, click to copy)
Package Base: oh-my-posh-bin
Description: A prompt theme engine for any shell.
Upstream URL: https://github.com/JanDeDobbeleer/oh-my-posh
Licenses: MIT
Conflicts: oh-my-posh
Provides: oh-my-posh
Submitter: Kamack38
Maintainer: Kamack38
Last Packager: Kamack38
Votes: 9
Popularity: 0.91
First Submitted: 2022-04-04 15:34 (UTC)
Last Updated: 2024-04-18 18:37 (UTC)

Pinned Comments

Kamack38 commented on 2023-07-29 20:01 (UTC) (edited on 2023-07-29 20:03 (UTC) by Kamack38)

Please do NOT flag this package out of date. This package is updated daily at 18:30 UTC by an automatic GitHub action here.

Latest Comments

1 2 Next › Last »

Kamack38 commented on 2023-07-29 20:01 (UTC) (edited on 2023-07-29 20:03 (UTC) by Kamack38)

Please do NOT flag this package out of date. This package is updated daily at 18:30 UTC by an automatic GitHub action here.

Kamack38 commented on 2022-11-08 16:30 (UTC)

Fix for the Licence file will be pushed soon.

a821 commented on 2022-11-08 08:34 (UTC) (edited on 2022-11-08 09:08 (UTC) by a821)

The built package contains a license file that has an unnecessary hash appended to its name. You could simply replace the line after package() (line 35) with

install -Dm 644 "LICENSE-${sha256sums[1]}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

Edit: had to fix the PKGBUILD due to several issues already mentioned months ago

_pkgname='oh-my-posh'
pkgname="${_pkgname}-bin"
pkgver=12.13.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=('unzip')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
sha256sums=('6709f27c77c2abebcd4726778843164364322527d2455ace917396f67ffcc3d5'
            'a5308c4e51268229a039ec4ec9a251a4cdb89d9380383e6e13aeba64a74f19ad')
sha256sums_x86_64=('2ab9ed43811f9f45947d0a21edff33b838d5cebc2036cc396debdd012358ceaa')
sha256sums_armv7h=('708fb455946a5036ab684e9fecba9cb106f9a4bcad72a519151da18d366a04c5')
sha256sums_aarch64=('168f7f440565aacd9f816524d450fde4914908dd605ba042b674264f08823025')
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-${sha256sums[0]}.zip")

package() {
    install -Dm 644 "LICENSE-${sha256sums[1]}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    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

    install -d "${pkgdir}/usr/share/oh-my-posh/themes"
    unzip "themes-${sha256sums[0]}.zip" -d "${pkgdir}/usr/share/oh-my-posh/themes"
    find "${pkgdir}/usr/share/oh-my-posh/themes/" -type f -exec chmod 644 {} +
}

Kamack38 commented on 2022-07-18 10:54 (UTC)

LiteracyFanatic, maybe try cleaning your AUR helper cache or build the PKGBUILD directly.

LiteracyFanatic commented on 2022-07-18 01:47 (UTC)

themes.zip checksum is invalid again.

mikebm94 commented on 2022-07-11 04:37 (UTC)

The validity check for the themes.zip file (themes-41fd29514b4f7f13062e57c229a62d163470d4519aefb8ac05a6b4153b8d807a.zip) fails.

wszqkzqk commented on 2022-06-21 05:53 (UTC)

But how to solve the problem of character garbled.

m3thodic commented on 2022-06-12 16:03 (UTC)

Actually here is a better diff for changing the file permissions on themes:

diff --git a/PKGBUILD b/PKGBUILD
index 4b44796..bc9e991 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -43,4 +43,5 @@ package() {

     mkdir -p "${pkgdir}/usr/share/oh-my-posh/themes"
     unzip "${srcdir}/themes-${sha256sums}.zip" -d "${pkgdir}/usr/share/oh-my-posh/themes"
+    find "${pkgdir}/usr/share/oh-my-posh/themes" -type f -exec chmod 644 "{}" \;
 }

m3thodic commented on 2022-06-04 01:38 (UTC) (edited on 2022-06-04 01:38 (UTC) by m3thodic)

Hey @Kamack38

You need to chmod the bundled themes in the package() function:

diff --git a/PKGBUILD b/PKGBUILD
index 8364251..9ee79e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -43,4 +43,5 @@ package() {

     mkdir -p "${pkgdir}/usr/share/oh-my-posh/themes"
     unzip "${srcdir}/themes-${sha256sums}.zip" -d "${pkgdir}/usr/share/oh-my-posh/themes"
+    chmod 644 "${pkgdir}"/usr/share/oh-my-posh/themes/*.json
 }

For some reason the files are completely unreadable when extracted from the zip archive:

---------- 1 root root 3.7K Jun 3 21:35 /usr/share/oh-my-posh/themes/1_shell.omp.json

After adding the chmod command I can now set themes:

eval $(oh-my-posh prompt init zsh --config /usr/share/oh-my-posh/themes/1_shell.omp.json)

Thanks!

Kamack38 commented on 2022-04-26 19:54 (UTC)

Thanks kwaxi!