From deec59f9bfcad61244a85f614c8a00eed9759abe Mon Sep 17 00:00:00 2001 From: tranzystorekk Date: Fri, 5 Jul 2024 13:31:54 +0200 Subject: [PATCH] New package: handlr-regex-0.10.1 --- srcpkgs/handlr | 1 + srcpkgs/handlr-regex/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/handlr/template | 25 ------------------------- 3 files changed, 32 insertions(+), 25 deletions(-) create mode 120000 srcpkgs/handlr create mode 100644 srcpkgs/handlr-regex/template delete mode 100644 srcpkgs/handlr/template diff --git a/srcpkgs/handlr b/srcpkgs/handlr new file mode 120000 index 00000000000000..6a9bf7b294ac8e --- /dev/null +++ b/srcpkgs/handlr @@ -0,0 +1 @@ +handlr-regex \ No newline at end of file diff --git a/srcpkgs/handlr-regex/template b/srcpkgs/handlr-regex/template new file mode 100644 index 00000000000000..f9d57ead5a4f3b --- /dev/null +++ b/srcpkgs/handlr-regex/template @@ -0,0 +1,31 @@ +# Template file for 'handlr-regex' +pkgname=handlr-regex +version=0.10.1 +revision=1 +build_style=cargo +make_install_args="--path handlr-regex" +short_desc="Fork of handlr with support for regex" +maintainer="tranzystorekk " +license="MIT" +homepage="https://github.com/Anomalocaridid/handlr-regex" +changelog="https://github.com/Anomalocaridid/handlr-regex/releases" +distfiles="https://github.com/Anomalocaridid/handlr-regex/archive/refs/tags/v${version}.tar.gz" +checksum=1bc96b1fa241f7f9db97b3fd99e94086d31ecb16b9bcd3057ce9d81b99fde85a + +post_install() { + vlicense LICENSE + + for _manpage in assets/manual/man1/*.1; do + vman ${_manpage} + done + + vcompletion assets/completions/handlr bash handlr + vcompletion assets/completions/handlr.fish fish handlr + vcompletion assets/completions/_handlr zsh handlr +} + +handlr_package() { + build_style=meta + short_desc+=" (transitional dummy package)" + depends="${sourcepkg}>=${version}_${revision}" +} diff --git a/srcpkgs/handlr/template b/srcpkgs/handlr/template deleted file mode 100644 index 8cbea310a56d89..00000000000000 --- a/srcpkgs/handlr/template +++ /dev/null @@ -1,25 +0,0 @@ -# Template file for 'handlr' -pkgname=handlr -version=0.6.4 -revision=2 -build_style=cargo -depends="shared-mime-info" -checkdepends="shared-mime-info" -short_desc="Alternative to xdg-utils for ease of use" -maintainer="Noel Cower " -license="MIT" -homepage="https://github.com/chmln/handlr" -distfiles="https://github.com/chmln/handlr/archive/v${version}.tar.gz" -checksum=7aae79775a08fdeb822eb0dafe90fdedffb97063649c9a950e9a8b8e6bf8e5ba - -post_patch() { - # fixes an indexmap error when cross compiling (see #34889) - cargo update --package autocfg:1.0.1 --precise 1.1.0 -} - -post_install() { - vcompletion completions/_handlr zsh - vcompletion completions/handlr.fish fish - - vlicense LICENSE -}