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 +}