blob: 2c1cdac5c5fa6cd8f2c20de16f9283292413bc9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=todo.txt-cli
_pkgname=${pkgname/-/_}
pkgver=2.11.0
pkgrel=0
pkgdesc="A simple and extensible shell script for managing your todo.txt file."
url="https://github.com/todotxt/todo.txt-cli"
arch="noarch"
license="GPL-3.0-or-later"
depends="bash"
subpackages="$pkgname-bash-completion:_bashcomp $pkgname-doc"
source="https://github.com/todotxt/$pkgname/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz
README.alpine"
builddir="$srcdir/$_pkgname-$pkgver"
package() {
cd "$builddir"
install -D -m644 todo.cfg "$pkgdir"/etc/todo.cfg
install -D -m755 todo.sh "$pkgdir"/usr/bin/todo.sh
install -D -m644 "$srcdir"/README.alpine \
"$pkgdir"/usr/share/doc/$pkgname/README.alpine
}
_bashcomp() {
pkgdesc="Bash completions for $pkgname"
depends=""
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$builddir"/todo_completion \
"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
}
sha512sums="7c570b6c4ad3db4b894bde66078376cef79c8325c9b0d638b168152a68020638dd4db9a88e386d877d01296bee0a4cde2a14a88229a0aac5653fc94c4cdf064a todo.txt_cli-2.11.0.tar.gz
91c1933cba346d207a5619c3ec51fe6a3b5c256f50d86bdc63debc4d246444cf59f126b49d54be47e2e1623c98312b799a0c183e96de1b22d1bb845cff5dadb3 README.alpine"
|