feat: 🎸 Add support for multiple architectures
This commit is contained in:
parent
2a5fa8aedc
commit
1d5d2aea9e
2 changed files with 34 additions and 8 deletions
16
.SRCINFO
16
.SRCINFO
|
@ -1,16 +1,26 @@
|
||||||
pkgbase = oh-my-posh-bin
|
pkgbase = oh-my-posh-bin
|
||||||
pkgdesc = A prompt theme engine for any shell.
|
pkgdesc = A prompt theme engine for any shell.
|
||||||
pkgver = 7.67.0
|
pkgver = 7.72.4
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/JanDeDobbeleer/oh-my-posh
|
url = https://github.com/JanDeDobbeleer/oh-my-posh
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
|
arch = armv7h
|
||||||
|
arch = aarch64
|
||||||
license = MIT
|
license = MIT
|
||||||
makedepends = curl
|
makedepends = curl
|
||||||
makedepends = grep
|
makedepends = grep
|
||||||
makedepends = sed
|
makedepends = sed
|
||||||
|
makedepends = unzip
|
||||||
provides = oh-my-posh
|
provides = oh-my-posh
|
||||||
conflicts = oh-my-posh
|
conflicts = oh-my-posh
|
||||||
source = https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v7.67.0/posh-linux-amd64
|
noextract = themes.zip
|
||||||
sha256sums = aeb46c8074de88338bb9061df80d50d780972ef088835bc439b616be2dab58df
|
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
|
pkgname = oh-my-posh-bin
|
||||||
|
|
24
PKGBUILD
24
PKGBUILD
|
@ -4,14 +4,21 @@ pkgname="${_pkgname}-bin"
|
||||||
pkgver=7.72.4
|
pkgver=7.72.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A prompt theme engine for any shell."
|
pkgdesc="A prompt theme engine for any shell."
|
||||||
arch=('x86_64')
|
arch=('x86_64' 'armv7h' 'aarch64')
|
||||||
url="https://github.com/JanDeDobbeleer/oh-my-posh"
|
url="https://github.com/JanDeDobbeleer/oh-my-posh"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
makedepends=('curl' 'grep' 'sed')
|
makedepends=('curl' 'grep' 'sed' 'unzip')
|
||||||
provides=("${_pkgname}")
|
provides=("${_pkgname}")
|
||||||
conflicts=("${_pkgname}")
|
conflicts=("${_pkgname}")
|
||||||
source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/posh-linux-amd64")
|
source=("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$pkgver/themes.zip")
|
||||||
sha256sums=('46d2d0bf64c341863a1444e89222269a78afacd65e421b8ea7ee870c5392a17c')
|
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() {
|
pkgver() {
|
||||||
curl --silent -L "https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest" | # Get latest release from GitHub api
|
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() {
|
package() {
|
||||||
|
if [[ "$CARCH" = 'x86_64' ]]; then
|
||||||
install -Dm 755 posh-linux-amd64 "${pkgdir}/usr/bin/oh-my-posh"
|
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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue