contrib/ddgr/Pkgfile

21 lines
628 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=1.9
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
}