Fix for the Licence file will be pushed soon.
Search Criteria
Package Details: oh-my-posh-bin 26.0.4-1
Package Actions
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: | 26 |
Popularity: | 3.21 |
First Submitted: | 2022-04-04 15:34 (UTC) |
Last Updated: | 2025-05-31 18:46 (UTC) |
Dependencies (4)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- grep (grep-gitAUR, grep-compatAUR) (make)
- sed (sed-gitAUR) (make)
- unzip (unzip-natspecAUR, unzip-zstdAUR, unzip-bsdunzip-symlinkAUR, unzip-pAUR) (make)
Required by (1)
- easy-zsh-config (requires oh-my-posh) (optional)
Sources (5)
- LICENSE-a5308c4e51268229a039ec4ec9a251a4cdb89d9380383e6e13aeba64a74f19ad
- posh-linux-amd64-580c472cef9cc8b8e789ec5d713b336b6ce2b59c29d972520f95a0ffa21046a3
- posh-linux-arm-45361fae94b5081577a40467cc45077d40af4fdf599747314ffdc79d748c4824
- posh-linux-arm64-5ac2c78e11efae316e7534fc89d368b7c6dfa51563a7fed92d9dd7760a2cb8e0
- themes-748510cdf2201f9edb195881d20059db683cea78cf5aa1eb16e791189d7cfd02.zip
Kamack38 commented on 2022-11-08 16:30 (UTC)
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!
kwaxi commented on 2022-04-23 08:20 (UTC) (edited on 2022-04-23 10:49 (UTC) by kwaxi)
Suggesting the following patch to enable multi-arch package:
diff --git a/PKGBUILD b/PKGBUILD
index cc99af0..8fcf6d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,24 @@
# Maintainer: Kamack38 <kamack38.biznes@gmail.com>
_pkgname='oh-my-posh'
pkgname="${_pkgname}-bin"
-pkgver=7.67.0
+pkgver=7.69.0
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' 'unzip')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
-source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64")
-sha256sums=('aeb46c8074de88338bb9061df80d50d780972ef088835bc439b616be2dab58df')
+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=('2e4a76dbc19644903a5c651ae0eb62a8bf9ca47b9045d4d342cd8413cd58c20a')
+sha256sums_x86_64+=('f4f084fc2a81a06e5cae794ffb00dc6102af5fcb91290627e95ccb3c3c4d2275')
+sha256sums_armv7h+=('e6cf6ece8a70bd89c23eea8564b20d0cebe610a7b14d65e484ff9eed673e1326')
+sha256sums_aarch64+=('a7b9f0a4f2395bd80616cffda3dc6917bb241c1219f48191e4532420f014cd61')
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"
}
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.