From edce3911f1f35fa9af40ba5dbc5327eb36c31919 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.1.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..9bad9f7b9e63 --- /dev/null +++ b/srcpkgs/knit/template @@ -0,0 +1,25 @@ +# Template file for 'knit' +pkgname=knit +version=1.1.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=ab92b240adc1f63502bd1de7f1d3eb64f508aa1e2ca7955d648d0a7351bbf37f + +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 +}