From 88198103e6096521ef609065a1c4c5af4bb7444f Mon Sep 17 00:00:00 2001 From: Hervy Qurrotul Ainur Rozi Date: Mon, 22 May 2023 06:40:39 +0700 Subject: [PATCH] New package: babelfish-1.1.0 --- srcpkgs/babelfish/patches/fix-module.patch | 23 ++++++++++++++++++++++ srcpkgs/babelfish/template | 17 ++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 srcpkgs/babelfish/patches/fix-module.patch create mode 100644 srcpkgs/babelfish/template diff --git a/srcpkgs/babelfish/patches/fix-module.patch b/srcpkgs/babelfish/patches/fix-module.patch new file mode 100644 index 000000000000..0deaeac86145 --- /dev/null +++ b/srcpkgs/babelfish/patches/fix-module.patch @@ -0,0 +1,23 @@ +--- a/go.mod ++++ b/go.mod +@@ -1,8 +1,9 @@ +-module bou.ke/babelfish ++module github.com/bouk/babelfish + + go 1.14 + + require ( ++ bou.ke/babelfish v1.1.0 + github.com/google/go-cmp v0.5.4 + mvdan.cc/sh/v3 v3.1.1-0.20200611202847-1a815c3846d1 + ) +diff --git a/go.sum b/go.sum +index b6be956..801fc9d 100644 +--- a/go.sum ++++ b/go.sum +@@ -1,3 +1,5 @@ ++bou.ke/babelfish v1.1.0 h1:tbm1ILNkK9Un4+CE/ge9vdVHoxbJGWiM3LWZh64XJB8= ++bou.ke/babelfish v1.1.0/go.mod h1:3lWBLbWGUmILo8PvxWUS3qc/0v0zYyy52EJW4p+A+Sc= + github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= + github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= + github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= diff --git a/srcpkgs/babelfish/template b/srcpkgs/babelfish/template new file mode 100644 index 000000000000..5bfcdd6e5aaa --- /dev/null +++ b/srcpkgs/babelfish/template @@ -0,0 +1,17 @@ +# Template file for 'babelfish' +pkgname=babelfish +version=1.1.0 +revision=1 +build_style=go +go_import_path="github.com/bouk/babelfish" +short_desc="Translate bash scripts to fish" +maintainer="Hervy Qurrotul Ainur Rozi " +license="MIT" +homepage="https://github.com/bouk/babelfish/" +distfiles="https://github.com/bouk/babelfish/archive/refs/tags/v$version.tar.gz" +checksum=7896c3e998e82ed15300f0951052af1e3a5a4c54fa9a07f1e2f743854b7ad239 + +post_install() { + vcompletion babel.fish fish + vlicense LICENSE +}