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 +}