# Maintainer: Ayush Agarwal # Contributor: Ben Oliver # Contributor: Andy Weidenbaum # Contributor: John Jenkins # Contributor: Julian Paul Dasmarinas pkgname=buku pkgver=4.9 pkgrel=2 pkgdesc="Bookmark manager like a text-based mini-web" arch=('any') url="https://github.com/jarun/buku" license=('GPL3') depends=('ca-certificates' 'python-beautifulsoup4' 'python-cryptography' 'python-html5lib' 'python-urllib3') makedepends=('python-setuptools') optdepends=('wl-clipboard: to copy text in wayland' 'xsel: to copy text in xorg' 'xclip: to copy text in xorg') source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('1e432270ae78c7852110dcf2c2e215893bcc338299a4998f14a1f6b26e37bfac') package() { cd "$pkgname-$pkgver" export PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") rm -f "$pkgdir/usr/bin/bukuserver" rm -rf "$pkgdir/$site_packages/bukuserver" gzip -f buku.1 install -Dm644 auto-completion/fish/buku.fish "$pkgdir/usr/share/fish/vendor_completions.d/buku.fish" install -Dm644 auto-completion/bash/buku-completion.bash "$pkgdir/usr/share/bash-completion/completions/buku" install -Dm644 auto-completion/zsh/_buku "$pkgdir/usr/share/zsh/site-functions/_buku" install -Dm644 buku.1.gz "$pkgdir/usr/share/man/man1/buku.1.gz" install -Dm644 CHANGELOG "$pkgdir/usr/share/doc/buku/CHANGELOG" install -Dm644 README.md "$pkgdir/usr/share/doc/buku/README.md" }