From 0bc96593fd6e1a251398d5b8364dcc7d06c69070 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 8 May 2023 14:35:25 +0200 Subject: [PATCH] New package: knit-1.1.1 --- srcpkgs/knit/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/knit/template diff --git a/srcpkgs/knit/template b/srcpkgs/knit/template new file mode 100644 index 00000000000..0476523cf1b --- /dev/null +++ b/srcpkgs/knit/template @@ -0,0 +1,24 @@ +# Template file for 'knit' +pkgname=knit +version=1.1.1 +revision=1 +build_style=go +go_import_path="./cmd/..." +go_ldflags="-X github.com/zyedidia/knit/info.Version=$version" +hostmakedepends="pandoc" +short_desc="Simple and flexible build tool using Lua, similar to make/mk" +maintainer="Leah Neukirchen " +license="MIT, MPL-2.0" +homepage="https://github.com/zyedidia/knit" +distfiles="https://github.com/zyedidia/knit/archive/refs/tags/v${version}.tar.gz" +checksum=f4a073568ef3b44d4cf80f4acff021368c5a2cc4f047ce7b4c6b5bfa57562e2b + +post_build() { + go run ./tools/replace/replace.go man/knit.md | pandoc -s -t man -o knit.1 +} + +post_install() { + vman knit.1 + vlicense LICENSE + vlicense LICENSE-EXTRA +}