blob: dfae12eaf023ac1eb0cb510c54b17049aaf91265 (
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.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="7796de441c11f37a191517e2fa6f1df87595a5f7283329eb8356347867a594037cb46a3d4398d9a07abe799bdeae6867d7cc15fffdc0eb2c97b974d638a91f6a buku-4.2.2.tar.gz"
|