From 59651c930d6c319ed36d22cc78509a6c4a29566b Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Sun, 10 Oct 2021 13:43:40 +1100 Subject: [PATCH] New package: lsmount-0.2.4 --- srcpkgs/lsmount/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/lsmount/template diff --git a/srcpkgs/lsmount/template b/srcpkgs/lsmount/template new file mode 100644 index 000000000000..a5b01c7f644f --- /dev/null +++ b/srcpkgs/lsmount/template @@ -0,0 +1,30 @@ +# Template file for 'lsmount' +pkgname=lsmount +version=0.2.4 +revision=1 +build_style=gnu-makefile +make_use_env=yes +hostmakedepends="pkg-config asciidoc" +makedepends="libconfig-devel ncurses-devel" +short_desc="/proc/mounts formatter with configurable colours, alignment & filtering" +maintainer="a dinosaur " +license="ISC" +homepage="https://www.lsmount.org/" +distfiles="https://github.com/Llandon/lsmount/archive/refs/tags/v${version}.tar.gz" +checksum=cb3cb9fb675278e513b038df20846638498912e94c38f85d789e9f6ae11fc67d +conf_files="/etc/lsmountrc" + +post_patch() { + vsed '/CC[[:blank:]]*=.*/d' -i Makefile + vsed 's/-ltermcap/-lncurses/' -i Makefile + vsed 's/^\tcp \(.*\) /\tinstall -D \1 $(DESTDIR)/' -i Makefile +} + +pre_install() { + mkdir -p "${DESTDIR}/usr/share/man/man1/" +} + +post_install() { + vlicense LICENSE + vdoc CHANGELOG.md +}