mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-16 05:11:59 +01:00
* No test suite. Remove fake check and mark no tests. Signed-off-by: prspkt <prspkt@protonmail.com>
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
# Contributor: dai9ah <dai9ah@protonmail.com>
|
|
# Maintainer: dai9ah <dai9ah@protonmail.com>
|
|
pkgname=ddgr
|
|
pkgver=1.7
|
|
pkgrel=0
|
|
pkgdesc="DuckDuckGo from the terminal"
|
|
url="https://github.com/jarun/ddgr"
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later"
|
|
depends="python3"
|
|
subpackages="$pkgname-doc
|
|
$pkgname-bash-completion:bashcomp:noarch
|
|
$pkgname-fish-completion:fishcomp:noarch
|
|
$pkgname-zsh-completion:zshcomp:noarch
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/ddgr/archive/v$pkgver.tar.gz"
|
|
options="!check" # no test suite
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" PREFIX=/usr install
|
|
}
|
|
|
|
bashcomp() {
|
|
pkgdesc="Bash completion for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/
|
|
install -Dm644 "$builddir"/auto-completion/bash/* \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/
|
|
}
|
|
|
|
fishcomp() {
|
|
pkgdesc="Fish completion for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel fish"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/fish/completions/
|
|
install -Dm644 "$builddir"/auto-completion/fish/* \
|
|
"$subpkgdir"/usr/share/fish/completions/
|
|
}
|
|
|
|
zshcomp() {
|
|
pkgdesc="Zsh completion for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel zsh"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/zsh/site-functions
|
|
install -Dm644 "$builddir"/auto-completion/zsh/* \
|
|
"$subpkgdir"/usr/share/zsh/site-functions/
|
|
|
|
}
|
|
|
|
sha512sums="9b07d045baeee6bbaa0a8213d90860f432687f9a0fbc5e424d9df3422897eb12c2c4d1ac210daa41cbb5fd5113148f01e20f276822157d42058872ab4fc70dae ddgr-1.7.tar.gz"
|