From 6c6b66c8aa5df01a9a1c1a9af21478d060dbffe4 Mon Sep 17 00:00:00 2001 From: Diego Magdaleno <38844659+DiegoMagdaleno@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:40:06 -0600 Subject: [PATCH 1/3] Add moar package --- srcpkgs/moar/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/moar/template diff --git a/srcpkgs/moar/template b/srcpkgs/moar/template new file mode 100644 index 000000000000..cec35536519e --- /dev/null +++ b/srcpkgs/moar/template @@ -0,0 +1,14 @@ +# Template file for 'moar' +pkgname=moar +version=1.13.0 +revision=0 +build_style=go +go_import_path=github.com/walles/moar +hostmakedepends="git" +short_desc="Drop-in replacement for the less pager" +maintainer="Diego Magdaleno " +license="BSD" +homepage="https://github.com/walles/moar" +changelog="https://github.com/waller/moar/releases" +distfiles="https://github.com/walles/moar/archive/refs/tags/v${version}.tar.gz" +checksum=65eac0d4f8a40f0198a93f0888a60a28e8466b2ee9d0437f143db5c25d5e9319 From 95b007d4bed81b0e4e879f0c0a7dae48497d751f Mon Sep 17 00:00:00 2001 From: Diego Magdaleno <38844659+DiegoMagdaleno@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:55:32 -0600 Subject: [PATCH 2/3] Install man pages --- srcpkgs/moar/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/moar/template b/srcpkgs/moar/template index cec35536519e..5e7f5932e701 100644 --- a/srcpkgs/moar/template +++ b/srcpkgs/moar/template @@ -12,3 +12,7 @@ homepage="https://github.com/walles/moar" changelog="https://github.com/waller/moar/releases" distfiles="https://github.com/walles/moar/archive/refs/tags/v${version}.tar.gz" checksum=65eac0d4f8a40f0198a93f0888a60a28e8466b2ee9d0437f143db5c25d5e9319 + +post_install() { + vman moar.1 +} From 93045e80fd495bffad57eac4385ec65388a80ecb Mon Sep 17 00:00:00 2001 From: Diego Magdaleno Date: Fri, 31 Mar 2023 18:39:24 -0600 Subject: [PATCH 3/3] [Fix] Apply the suggested fixes --- srcpkgs/moar/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/moar/template b/srcpkgs/moar/template index 5e7f5932e701..03921fee8908 100644 --- a/srcpkgs/moar/template +++ b/srcpkgs/moar/template @@ -1,13 +1,13 @@ # Template file for 'moar' pkgname=moar version=1.13.0 -revision=0 +revision=1 build_style=go go_import_path=github.com/walles/moar -hostmakedepends="git" +go_ldflags="-X main.versionString=${version}" short_desc="Drop-in replacement for the less pager" maintainer="Diego Magdaleno " -license="BSD" +license="BSD-2-Clause" homepage="https://github.com/walles/moar" changelog="https://github.com/waller/moar/releases" distfiles="https://github.com/walles/moar/archive/refs/tags/v${version}.tar.gz" @@ -15,4 +15,5 @@ checksum=65eac0d4f8a40f0198a93f0888a60a28e8466b2ee9d0437f143db5c25d5e9319 post_install() { vman moar.1 + vlicense LICENSE }