From 666b089ce2fc0b0189e2c8d0d019ce5b129e4a85 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Tue, 12 Sep 2023 20:02:26 +0200 Subject: [PATCH] New package: mmv-rs-1.3.0 --- srcpkgs/mmv-rs/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/mmv-rs/template diff --git a/srcpkgs/mmv-rs/template b/srcpkgs/mmv-rs/template new file mode 100644 index 0000000000000..b1d4359aae3ea --- /dev/null +++ b/srcpkgs/mmv-rs/template @@ -0,0 +1,24 @@ +# Template file for 'mmv-rs' +pkgname=mmv-rs +version=1.3.0 +revision=1 +build_style=cargo +short_desc="Minimal cli utility for safe mass moving/renaming of files" +maintainer="Luca Matei Pintilie " +license="0BSD" +homepage="https://sr.ht/~mango/mmv" +changelog="https://git.sr.ht/~mango/mmv/refs" +distfiles="https://git.sr.ht/~mango/mmv/archive/v$version.tar.gz" +checksum=e61bd9baf22d070a3a83addc0aa4efb974030f23b274360651f35de0b79bf486 + +export MMV_NAME="mmv-rs" +export MCP_NAME="mcp-rs" + +post_install() { + mv $DESTDIR/usr/bin/mmv $DESTDIR/usr/bin/mmv-rs + ln -s mmv-rs $DESTDIR/usr/bin/mcp-rs + vsed -i mmv.1 -e 's/[^/]mmv/&-rs/g; s/[^/]mcp/&-rs/g; s/MMV/&-RS/g' + vman mmv.1 mmv-rs.1 + ln -s mmv-rs.1 $DESTDIR/usr/share/man/man1/mcp-rs.1 + vlicense LICENSE +}