From 17e919aa5d9246ddb8317f1127f04603372adc58 Mon Sep 17 00:00:00 2001 From: Zahrun Date: Wed, 11 Oct 2023 16:10:53 +0530 Subject: [PATCH] add: `easy-zsh-config-git` --- packagelist | 1 + .../easy-zsh-config-git.pacscript | 27 +++++++++++++++++++ 2 files changed, 28 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..85eaa7e9b7 --- /dev/null +++ b/packages/easy-zsh-config-git/easy-zsh-config-git.pacscript @@ -0,0 +1,27 @@ +name="easy-zsh-config-git" +pkgname="easy-zsh-config" +url="https://github.com/wszqkzqk/${pkgname}.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/skel/.zshrc" + sudo install -Dm644 zshrc "${pkgdir}/etc/zsh/zshrc" + sudo install -Dm640 zshrc "${pkgdir}/root/.zshrc" + sudo install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${name}/" + sudo install -Dm644 easy-zsh-config "${pkgdir}/usr/share/zsh/easy-zsh-config" +}