iglunix/pkgs/kakoune/build.sh

41 lines
677 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-01-31 11:09:14 +00:00
curl "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
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
2020-12-29 15:47:35 +00:00
}
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
2020-12-29 15:47:35 +00:00
}
license() {
cd $pkgname-$pkgver
cat UNLICENSE
}