From 296e052eee874da8d60be1ba3af852386f8f506b Mon Sep 17 00:00:00 2001 From: Aroun Date: Fri, 13 Oct 2023 20:34:29 +0530 Subject: [PATCH] add: `easy-zsh-config-git` (#4659) --- packagelist | 1 + .../easy-zsh-config-git.pacscript | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 packages/easy-zsh-config-git/easy-zsh-config-git.pacscript diff --git a/packagelist b/packagelist index c5ee79d8d9..62c6bbe027 100644 --- a/packagelist +++ b/packagelist @@ -83,6 +83,7 @@ dropbox-deb duf-deb dunst dust-bin +easy-zsh-config-git eddie-ui-deb electronmail-deb electrum-git diff --git a/packages/easy-zsh-config-git/easy-zsh-config-git.pacscript b/packages/easy-zsh-config-git/easy-zsh-config-git.pacscript new file mode 100755 index 0000000000..b9548e2a9f --- /dev/null +++ b/packages/easy-zsh-config-git/easy-zsh-config-git.pacscript @@ -0,0 +1,25 @@ +name="easy-zsh-config-git" +pkgname="easy-zsh-config" +url="https://github.com/wszqkzqk/easy-zsh-config.git" +pkgver="0.6.2" +pacdeps=("oh-my-posh-git" "zsh-history-substring-search-git") +depends=("zsh" "zsh-syntax-highlighting" "zsh-autosuggestions") +breaks=("${pkgname}") +replace=("${pkgname}") +gives=("${pkgname}") +pkgdesc="A simple but fast and out of the box configuration of zsh powered by oh-my-posh and zsh plugins" +maintainer="Zahrun " +pkgver() { + git ls-remote "${url}" refs/heads/master | cut -f1 | cut -c1-8 +} + +prepare() { + sed -i s:/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh:/usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh:g easy-zsh-config + sed -i s:/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:g easy-zsh-config +} + +package() { + sudo install -Dm644 zshrc "${pkgdir}/etc/zsh/zshrc-easy-zsh-config" + sudo install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${name}/" + sudo install -Dm644 easy-zsh-config "${pkgdir}/usr/share/zsh/easy-zsh-config" +}