diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-19 15:42:32 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-19 15:42:36 +0000 |
commit | 25a40bd803b070f1779c8bef9ef24398a5b1b6f2 (patch) | |
tree | 0f44fd3c511e695753014ee2f9f545d3130bd180 /testing | |
parent | 1ac13453fc246d8b2c5bcd2f5714c3871448f7a6 (diff) | |
download | aports-25a40bd803b070f1779c8bef9ef24398a5b1b6f2.tar.bz2 aports-25a40bd803b070f1779c8bef9ef24398a5b1b6f2.tar.xz |
testing/todo.txt-cli: added -doc subpackage
Diffstat (limited to 'testing')
-rw-r--r-- | testing/todo.txt-cli/APKBUILD | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/testing/todo.txt-cli/APKBUILD b/testing/todo.txt-cli/APKBUILD index 96cbae5196..d9a3111e94 100644 --- a/testing/todo.txt-cli/APKBUILD +++ b/testing/todo.txt-cli/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=todo.txt-cli pkgver=2.10 -pkgrel=0 +pkgrel=1 pkgdesc="A simple and extensible shell script for managing your todo.txt file." url="https://github.com/ginatrapani/todo.txt-cli" arch="noarch" @@ -11,7 +11,7 @@ depends="bash" depends_dev="" makedepends="$depends_dev" install="" -subpackages="$pkgname-bash-completion:bashcomp" +subpackages="$pkgname-bash-completion:bashcomp $pkgname-doc" source="https://github.com/ginatrapani/$pkgname/releases/download/v${pkgver}/${pkgname/-/_}-$pkgver.tar.gz" builddir="$srcdir"/${pkgname/-/_}-$pkgver @@ -24,6 +24,16 @@ package() { cd "$builddir" install -D -m644 todo.cfg $pkgdir/etc/todo.cfg install -D -m755 todo.sh $pkgdir/usr/bin/todo.sh + mkdir -p "$pkgdir"/usr/share/doc/$pkgname + cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF + + To use todo.txt-cli fully: + ------------------------- + * copy /etc/todo.cfg in ~/.todo/config file + + * alias the command "todo.sh" with "t" by adding to ~/.profile (if ash) or ~/bashrc (if bash): + alias t='todo.sh' +EOF } bashcomp() { |