iglunix/pkgs/kakoune/build.sh
2021-01-12 11:06:46 +00:00

39 lines
663 B
Bash

pkgver=builtin-terminal-ui
pkgname=kakoune
pkgrel=1
bad=""
ext="doc"
fetch() {
curl -L "https://github.com/mawww/kakoune/archive/builtin-terminal-ui.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cd src
ckati
}
package() {
cd $pkgname-$pkgver
cd src
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm -r $pkgdir/usr/share/doc
rm -r $pkgdir/usr/share/man
rm -r $pkgdir/usr/libexec
}
package_doc() {
cd $pkgname-$pkgver
cd src
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm -r $pkgdir/usr/share/kak
rm -r $pkgdir/usr/libexec
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat UNLICENSE
}