From 91668ee4798ac23cd3410743d4f4c859fa43747e Mon Sep 17 00:00:00 2001 From: James Reynolds Date: Tue, 21 Mar 2023 08:54:05 -0600 Subject: [PATCH] projects/plasmasturm.org (#826) * projects/plasmasturm.org * Fixed version and unused env var --------- Co-authored-by: James Reynolds --- projects/plasmasturm.org/rename/package.yml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/plasmasturm.org/rename/package.yml diff --git a/projects/plasmasturm.org/rename/package.yml b/projects/plasmasturm.org/rename/package.yml new file mode 100644 index 00000000..cff76ee9 --- /dev/null +++ b/projects/plasmasturm.org/rename/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/ap/rename/archive/refs/tags/v{{version.raw}}.tar.gz + strip-components: 1 + +versions: + github: ap/rename/tags + +dependencies: + perl.org: '>=5' + +build: + script: | + pod2man rename rename.1 + mkdir -p "{{ prefix }}"/bin + mv rename "{{ prefix }}"/bin + mkdir -p "{{ prefix }}"/share/man/man1 + mv rename.1 "{{ prefix }}"/share/man/man1 + +provides: + - bin/rename + +test: + script: | + touch foo.txt + rename -s .txt .md foo.txt + ls foo.md \ No newline at end of file