mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 23:51:58 +01:00
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
# 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"
|