Skip to content

Commit

Permalink
add: oh-my-posh-git (#4651)
Browse files Browse the repository at this point in the history
Co-authored-by: oklopfer <[email protected]>
  • Loading branch information
Zahrun and oklopfer authored Oct 12, 2023
1 parent 11139f8 commit 5e10359
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ obs-backgroundremoval-deb
obs-backgroundremoval-git
obs-ndi-deb
obsidian-deb
oh-my-posh-git
oil
onefetch-bin
onlyoffice-desktopeditors-deb
Expand Down
27 changes: 27 additions & 0 deletions packages/oh-my-posh-git/oh-my-posh-git.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name="oh-my-posh-git"
pkgname="oh-my-posh"
url="https://github.com/JanDeDobbeleer/oh-my-posh.git"
pkgver="18.11.0"
makedepends=("golang-go")
pacdeps=("nerd-fonts-hack")
breaks=("${pkgname}")
replace=("${pkgname}")
gives=("${pkgname}")
arch=('amd64')
pkgdesc="A prompt theme engine for any shell"
maintainer="Zahrun <[email protected]>"
pkgver() {
git ls-remote "${url}" refs/heads/main | cut -f1 | cut -c1-8
}

build() {
cd src || exit 1
go build -o "${pkgname}"
}

package() {
sudo install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${name}"
sudo install -Dm755 "src/${pkgname}" -t "${pkgdir}/usr/bin/"
sudo install -d "${pkgdir}/usr/share/oh-my-posh/themes"
sudo install -m 644 themes/* -t "${pkgdir}/usr/share/oh-my-posh/themes"
}

0 comments on commit 5e10359

Please sign in to comment.