From 12492cae0e8deb4ce13e31fc512d6dd5efbd94f9 Mon Sep 17 00:00:00 2001 From: itamiko Date: Fri, 6 Sep 2019 22:12:11 -0600 Subject: [PATCH] New package: reddio-0.3 --- .../reddio/patches/change_share_path.patch | 13 +++++++++++++ srcpkgs/reddio/reddio.INSTALL.msg | 1 + srcpkgs/reddio/template | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 srcpkgs/reddio/patches/change_share_path.patch create mode 100644 srcpkgs/reddio/reddio.INSTALL.msg create mode 100644 srcpkgs/reddio/template diff --git a/srcpkgs/reddio/patches/change_share_path.patch b/srcpkgs/reddio/patches/change_share_path.patch new file mode 100644 index 00000000000..a368733cf28 --- /dev/null +++ b/srcpkgs/reddio/patches/change_share_path.patch @@ -0,0 +1,13 @@ +diff --git a/reddio b/reddio +index dfa47e0..806718d 100755 +--- reddio ++++ reddio +@@ -185,7 +185,7 @@ example, 'p' for print or 'logi' for login." + load_config "$config_file" + + # 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/reddio.INSTALL.msg b/srcpkgs/reddio/reddio.INSTALL.msg new file mode 100644 index 00000000000..3d9fbbecf1f --- /dev/null +++ b/srcpkgs/reddio/reddio.INSTALL.msg @@ -0,0 +1 @@ +Optional: netcat to authenticate with your Reddit account credentials diff --git a/srcpkgs/reddio/template b/srcpkgs/reddio/template new file mode 100644 index 00000000000..e4bcbf1b454 --- /dev/null +++ b/srcpkgs/reddio/template @@ -0,0 +1,19 @@ +# Template file for 'reddio' +pkgname=reddio +version=0.3 +revision=1 +wrksrc="${pkgname}-v${version}" +depends="curl jq" +short_desc="Command-line interface for Reddit written in POSIX" +maintainer="itamiko " +license="MIT" +homepage="https://gitlab.com/aaronNG/reddio" +distfiles="https://gitlab.com/aaronNG/reddio/-/archive/v${version}/reddio-v${version}.tar.gz" +checksum=be200dfba2bbbbff8ba2445ad9f41842419c9e3d65aa103a8334886f2b1ff870 + +do_install() { + vbin reddio + vlicense LICENSE + vmkdir usr/share/reddio + vcopy share/reddio usr/share/reddio +}