blob: 392ab0e6859147b212bbbc214d7d111ffee4035d (
plain)
1 # Description: DuckDuckGo from the terminal
2 # URL: https://github.com/jarun/ddgr
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Packager: Pedja, predivan at mts dot rs
5 # Depends on: python3
6 # Optional: xclip
7
8 name=ddgr
9 version=1.7
10 release=1
11 source=(https://github.com/jarun/ddgr/archive/v"$version"/$name-$version.tar.gz)
12
13 build() {
14 cd $name-$version
15 make DESTDIR=$PKG PREFIX=/usr install
16 install -Dm644 auto-completion/bash/ddgr-completion.bash $PKG/etc/bash_completion.d/ddgr
17 if [ -n "$(pkginfo -i | grep '^zsh ')" ]; then
18 install -Dm644 auto-completion/zsh/_ddgr $PKG/usr/share/zsh/site-functions/_ddgr
19 fi
20 rm -rf $PKG/usr/share/doc
21 }
|