From 920f1ad0ed9ed0dbe0f087ab2ce9197282c5e6be Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Sun, 3 Jul 2022 16:03:25 +0100 Subject: [PATCH] New package: gek-0.1 --- srcpkgs/gek/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/gek/template diff --git a/srcpkgs/gek/template b/srcpkgs/gek/template new file mode 100644 index 000000000000..ac2ca70e64d3 --- /dev/null +++ b/srcpkgs/gek/template @@ -0,0 +1,27 @@ +# Template file for 'gek' +pkgname=gek +version=0.1 +revision=1 +wrksrc="gek-v${version}" +build_style=go +go_import_path="git.sr.ht/~geb/gek" +go_package="${go_import_path}/src" +short_desc="Stack-based stream editor and scripting language" +maintainer="John Gebbie " +license="GPL-3.0-only" +homepage="https://geklang.org/" +distfiles="https://git.sr.ht/~geb/gek/archive/v${version}.tar.gz" +checksum="3a271b067793099a9ad873cd6f9113b3bdc376160e1bdb9f72892e94d0c8f1c6" + +# The default would install it called src. +do_build() { + go build -o gek "${go_package}" +} + +do_install() { + vbin gek + vbin gekdoc + vman gek.1 + mkdir "${DESTDIR}/usr/share/doc" + cp -r doc "${DESTDIR}/usr/share/doc/${pkgname}" +}