Updated doas; added kakoune and kati

This commit is contained in:
Ella-0 2020-12-29 15:47:35 +00:00
parent 3f540144cb
commit 7321e82d2a
4 changed files with 123 additions and 0 deletions

24
pkgs/doas/build.ninja Normal file
View file

@ -0,0 +1,24 @@
cflags=-I. -Ilibopenbsd -O2 -Wall -Wextra -D__linux__ -D_DEFAULT_SOURCE -D_GNU_SOURCE
rule yy
command = yacc $in -o $out
rule cc
command = cc $cflags -c -o $out $in
rule ld
command = cc $cflags $in -o $out -lcrypt
build parse.c: yy parse.y
build parse.o: cc parse.c
build doas.o: cc doas.c
build env.o: cc env.c
build libopenbsd/strlcat.o: cc libopenbsd/strlcat.c
build libopenbsd/errc.o: cc libopenbsd/errc.c
build libopenbsd/verrc.o: cc libopenbsd/verrc.c
build libopenbsd/progname.o: cc libopenbsd/progname.c
build libopenbsd/readpassphrase.o: cc libopenbsd/readpassphrase.c
build libopenbsd/strtonum.o: cc libopenbsd/strtonum.c
build libopenbsd/closefrom.o: cc libopenbsd/closefrom.c
build shadow.o: cc shadow.c
build doas: ld parse.o doas.o env.o libopenbsd/strlcat.o libopenbsd/strlcpy.o libopenbsd/errc.o libopenbsd/verrc.o libopenbsd/progname.o libopenbsd/readpassphrase.o libopenbsd/strtonum.o libopenbsd/closefrom.o shadow.o

37
pkgs/doas/build.sh Normal file
View file

@ -0,0 +1,37 @@
pkgver=6.8
pkgname=doas
pkgrel=1
bad=""
ext="doc"
fetch() {
curl -L "https://github.com/Duncaen/OpenDoas/releases/download/v6.8/opendoas-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv opendoas-$pkgver $pkgname-$pkgver
cp ../build.ninja $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
samu
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/bin
install -Dm4755 $pkgdir/bin doas
}
package_doc() {
cd $pkgname-$pkgver
install -d $pkgdir/share/man/
install -d $pkgdir/share/man/man1
install -d $pkgdir/share/man/man5
install -Dm644 $pkgdir/share/man/man1 doas.1
install -Dm644 $pkgdir/share/man/man5 doas.conf.5
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}

39
pkgs/kakoune/build.sh Normal file
View file

@ -0,0 +1,39 @@
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=/
rm -r $pkgdir/share/doc
rm -r $pkgdir/share/man
rm -r $pkgdir/libexec
}
package_doc() {
cd $pkgname-$pkgver
cd src
ckati install DESTDIR=$pkgdir PREFIX=/
rm -r $pkgdir/share/kak
rm -r $pkgdir/libexec
rm -r $pkgdir/bin
}
license() {
cd $pkgname-$pkgver
cat UNLICENSE
}

23
pkgs/kati/build.sh Normal file
View file

@ -0,0 +1,23 @@
pkgver=0.0.0
pkgname=kati
pkgrel=1
fetch() {
git clone --depth=1 "https://github.com/google/kati"
}
build() {
cd $pkgname
ckati
}
package() {
cd $pkgname
install -d $pkgdir/bin
install -Dm755 ./ckati $pkgdir/bin/
}
license() {
cd $pkgname
cat LICENSE
}