From aa69ed3c118e6fa4adcd62aacee5d366268c27ab Mon Sep 17 00:00:00 2001 From: Johannes Herforth Date: Sun, 6 Nov 2022 03:25:06 +0100 Subject: [PATCH] New package: reddio-0.52 --- srcpkgs/reddio/INSTALL.msg | 1 + .../reddio/patches/change_share_path.patch | 13 +++++++++++++ srcpkgs/reddio/template | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 srcpkgs/reddio/INSTALL.msg create mode 100644 srcpkgs/reddio/patches/change_share_path.patch create mode 100644 srcpkgs/reddio/template diff --git a/srcpkgs/reddio/INSTALL.msg b/srcpkgs/reddio/INSTALL.msg new file mode 100644 index 000000000000..3d9fbbecf1f6 --- /dev/null +++ b/srcpkgs/reddio/INSTALL.msg @@ -0,0 +1 @@ +Optional: netcat to authenticate with your Reddit account credentials diff --git a/srcpkgs/reddio/patches/change_share_path.patch b/srcpkgs/reddio/patches/change_share_path.patch new file mode 100644 index 000000000000..0e2a5d4cf02e --- /dev/null +++ b/srcpkgs/reddio/patches/change_share_path.patch @@ -0,0 +1,13 @@ +diff --git a/reddio b/reddio +index dd65718..bc78105 100755 +--- a/reddio ++++ b/reddio +@@ -197,7 +197,7 @@ main() + fi + + # Library path environment variable has precedence over config +- lib_dir=${REDDIO_LIB:-${lib_dir:-/usr/local/share/reddio}} ++ lib_dir=${REDDIO_LIB:-${lib_dir:-/usr/share/reddio}} + + # Make sure the lib directory can be found + [ -d "$lib_dir" ] || { diff --git a/srcpkgs/reddio/template b/srcpkgs/reddio/template new file mode 100644 index 000000000000..d34a8a4d794c --- /dev/null +++ b/srcpkgs/reddio/template @@ -0,0 +1,19 @@ +# Template file for 'reddio' +pkgname=reddio +version=0.52 +revision=1 +wrksrc="${pkgname}-v${version}" +depends="curl jq" +short_desc="Command-line interface for Reddit written in POSIX" +maintainer="Johannes Herforth " +license="MIT" +homepage="https://gitlab.com/aaronNG/reddio" +distfiles="https://gitlab.com/aaronNG/reddio/-/archive/v${version}/reddio-v${version}.tar.gz" +checksum=7da96fe1877725b3ce12520a06e9105547fe7e6e4f5971f4b4318c96a79e8d07 + +do_install() { + vbin reddio + vlicense LICENSE + vmkdir usr/share/reddio + vcopy share/reddio usr/share/ +}