From 5753709e8898c4d0383f9e0415b344dac8de3166 Mon Sep 17 00:00:00 2001 From: Dominic Monroe Date: Thu, 26 Dec 2019 11:27:55 +0000 Subject: [PATCH] New package: todo.txt-cli-2.11.0 --- srcpkgs/todo.txt-cli/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/todo.txt-cli/template diff --git a/srcpkgs/todo.txt-cli/template b/srcpkgs/todo.txt-cli/template new file mode 100644 index 00000000000000..ece580a36d05fb --- /dev/null +++ b/srcpkgs/todo.txt-cli/template @@ -0,0 +1,22 @@ +# Template file for 'todo.txt-cli' +pkgname=todo.txt-cli +version=2.11.0 +revision=1 +depends="bash" +short_desc="Simple and extensible shell script for managing your todo.txt file" +maintainer="Dominic Monroe " +license="GPL-3.0-or-later" +homepage="http://todotxt.org" +distfiles="https://github.com/todotxt/todo.txt-cli/archive/v${version}.tar.gz" +checksum=95c7e10c3b7d161272b70edfcfee3cea9a888812ca82c26343143dd8a81e5176 + +do_build() { + # Adapted from the official Makefile + sed -i "s/^\(export[ \t]*TODO_DIR=\).*/\1~\/.todo/" todo.cfg +} + +do_install() { + vbin todo.sh + vinstall todo_completion 644 /usr/share/bash-completion/completions todo + vinstall todo.cfg 644 etc/todo config +}