zsh pluggins

This commit is contained in:
Ella-0 2021-01-31 13:43:06 +00:00
parent 6172c74c4f
commit 9c865d4958
2 changed files with 48 additions and 0 deletions

View file

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

View file

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