From c9761ed92f55b7e3c23a2eaab01ce8c699920c18 Mon Sep 17 00:00:00 2001 From: Daniel Lewan Date: Mon, 17 Apr 2023 21:34:53 +0200 Subject: [PATCH] New package: knit-1.0.0 --- srcpkgs/knit/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/knit/template diff --git a/srcpkgs/knit/template b/srcpkgs/knit/template new file mode 100644 index 000000000000..75738ecef535 --- /dev/null +++ b/srcpkgs/knit/template @@ -0,0 +1,25 @@ +# Template file for 'knit' +pkgname=knit +version=1.0.0 +revision=1 +build_style=go +go_import_path=github.com/zyedidia/knit/cmd/knit +go_ldflags="-X github.com/zyedidia/knit/info.Version=$version" +hostmakedepends="pandoc" +short_desc="Build tool inspired by Make and Plan9 Mk" +maintainer="Daniel Lewan " +license="MIT" +homepage="https://github.com/zyedidia/knit" +distfiles="https://github.com/zyedidia/knit/archive/v${version}.tar.gz" +checksum=18c78e98c4675f765537b332da0dcbb7eac855220c703a81deaa03b2c0e3a092 + +post_build() { + go build -o tools/replace/replace tools/replace/replace.go + tools/replace/replace man/knit.md | pandoc -s -t man -o knit.1 +} + +post_install() { + vman ./knit.1 + vlicense LICENSE + vlicense LICENSE-EXTRA +}