From abce9105cb42f0e254276ca78969f99b9cbd7222 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 | 23 +++++++++++++++++++ 3 files changed, 37 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..650e8c9494d --- /dev/null +++ b/srcpkgs/reddio/patches/change_share_path.patch @@ -0,0 +1,13 @@ +diff --git a/reddio b/reddio +index dfa47e0..806718d 100755 +--- a/reddio ++++ b/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..b2595e79e42 --- /dev/null +++ b/srcpkgs/reddio/reddio.INSTALL.msg @@ -0,0 +1 @@ +Optional: nc to authenticate with your Reddit account credentials diff --git a/srcpkgs/reddio/template b/srcpkgs/reddio/template new file mode 100644 index 00000000000..22a6bf6e572 --- /dev/null +++ b/srcpkgs/reddio/template @@ -0,0 +1,23 @@ +# Template file for 'reddio' +pkgname=reddio +version=0.3 +revision=5 +wrksrc="reddio-v0.3" +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 +patch_args="-Np1" + +do_install() { + vbin reddio + vmkdir usr/share/reddio + vcopy share/reddio/** usr/share/reddio/ +} + +post_install() { + vlicense LICENSE +}