iglunix/pkgs/zsh-autosuggestions/build.sh
2021-01-31 13:43:06 +00:00

25 lines
510 B
Bash

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
}