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

Generated by cgit