contrib/ddgr/Pkgfile
2023-12-29 11:26:42 +01:00

26 lines
653 B
Plaintext

# Description: DuckDuckGo from the terminal
# URL: https://github.com/jarun/ddgr
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-setuptools
# Optional: xclip
name=ddgr
version=2.2
release=1
source=(https://github.com/jarun/ddgr/archive/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
make DESTDIR=$PKG PREFIX=/usr install
prt-get isinst bash-completion && \
install -Dm644 auto-completion/bash/ddgr-completion.bash \
$PKG/etc/bash_completion.d/ddgr
prt-get isinst zsh && \
install -Dm644 auto-completion/zsh/_ddgr \
$PKG/usr/share/zsh/site-functions/_ddgr
rm -rf $PKG/usr/share/doc
}