iglunix/pkgs/kakoune/build.sh

38 lines
656 B
Bash
Raw Normal View History

2020-12-29 15:47:35 +00:00
pkgver=builtin-terminal-ui
pkgname=kakoune
pkgrel=1
2021-01-31 11:09:14 +00:00
deps="musl:llvm"
2020-12-29 15:47:35 +00:00
bad=""
ext="doc"
fetch() {
2021-02-03 14:13:58 +00:00
curl -L "https://github.com/mawww/kakoune/archive/builtin-terminal-ui.tar.gz" -o $pkgname-$pkgver.tar.xz
2020-12-29 15:47:35 +00:00
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
ckati
}
package() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm -r $pkgdir/usr/share/doc
rm -r $pkgdir/usr/share/man
rm -r $pkgdir/usr/libexec
2020-12-29 15:47:35 +00:00
}
package_doc() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm -r $pkgdir/usr/share/kak
rm -r $pkgdir/usr/libexec
rm -r $pkgdir/usr/bin
2020-12-29 15:47:35 +00:00
}
license() {
cd $pkgname-$pkgver
cat UNLICENSE
}