Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: oh-my-posh-git #4651

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}