From 9c865d4958e3239aac6219244c36af5c2ae878e5 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:43:06 +0000 Subject: [PATCH] zsh pluggins --- pkgs/zsh-autosuggestions/build.sh | 25 +++++++++++++++++++++++++ pkgs/zsh-syntax-highlighting/build.sh | 23 +++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/zsh-autosuggestions/build.sh create mode 100644 pkgs/zsh-syntax-highlighting/build.sh diff --git a/pkgs/zsh-autosuggestions/build.sh b/pkgs/zsh-autosuggestions/build.sh new file mode 100644 index 0000000..1751575 --- /dev/null +++ b/pkgs/zsh-autosuggestions/build.sh @@ -0,0 +1,25 @@ +pkgname=zsh-autosuggestions +pkgver=0.6.4 + +fetch() { + curl -L "https://github.com/zsh-users/$pkgname/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + #mv zsh-users-$pkgname-* $pkgname-$pkgver +} + +build() { + cd $pkgname-$pkgver + make +} + +package() { + cd $pkgname-$pkgver + install -Dm644 ./$pkgname.zsh "$pkgdir/usr/share/zsh/plugins/$pkgname/" + install -Dm644 ./$pkgname.plugin.zsh "$pkgdir/usr/share/zsh/plugins/$pkgname/" + +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +} diff --git a/pkgs/zsh-syntax-highlighting/build.sh b/pkgs/zsh-syntax-highlighting/build.sh new file mode 100644 index 0000000..d3a4c2d --- /dev/null +++ b/pkgs/zsh-syntax-highlighting/build.sh @@ -0,0 +1,23 @@ +pkgname=zsh-syntax-highlighting +pkgver=0.7.1 + +fetch() { + curl -L "https://github.com/zsh-users/$pkgname/tarball/$pkgver" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mv zsh-users-$pkgname-* $pkgname-$pkgver +} + +build() { + cd $pkgname-$pkgver + make +} + +package() { + cd $pkgname-$pkgver + make PREFIX="/usr" SHARE_DIR="$pkgdir/usr/share/zsh/plugins/$pkgname" DESTDIR="$pkgdir" install +} + +license() { + cd $pkgname-$pkgver + cat COPYING.md +}