blob: 52dabfe9b48816a08b53f8dee62a40a12914c34c (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=buku
pkgver=4.2
pkgrel=0
pkgdesc="Cmdline bookmark management utility"
options="!check" # Requires unpackaged vcrpy
url="https://github.com/jarun/Buku"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-urllib3 py3-cryptography py3-html5lib py3-beautifulsoup4
py3-certifi"
makedepends="py3-setuptools"
subpackages="$pkgname-doc $pkgname-bash-completion:_bashcomp:noarch
$pkgname-zsh-completion:_zshcomp:noarch
$pkgname-fish-completion:_fishcomp:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/Buku/archive/v${pkgver}.tar.gz"
builddir="$srcdir"/Buku-$pkgver
package() {
install -Dm0755 buku "$pkgdir"/usr/bin/buku
install -Dm0644 buku.1 "$pkgdir"/usr/share/man/man1/buku.1
}
_bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$builddir"/auto-completion/bash/buku-completion.bash \
"$subpkgdir"/usr/share/bash-completion/completions/buku
}
_zshcomp() {
depends=""
pkgdesc="Zsh compltions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
install -Dm644 "$builddir"/auto-completion/zsh/_buku \
"$subpkgdir"/usr/share/zsh/site-functions/_buku
}
_fishcomp() {
depends=""
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
install -Dm644 "$builddir"/auto-completion/fish/buku.fish \
"$subpkgdir"/usr/share/fish/completions/buku.fish
}
sha512sums="91d3c6d8713204d45936b2ce6f0d75f7ddecb402d9c1d1f50b91857de9f39db8e59fe1aab7c090b0415a5fd4135bc52e1a300187159ef8ef4163cda590065eb9 buku-4.2.tar.gz"
|