2018-09-17 14:30:13 +02:00
|
|
|
# Description: DuckDuckGo from the terminal
|
|
|
|
# URL: https://github.com/jarun/ddgr
|
2019-09-20 09:55:08 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-01-03 14:40:59 +01:00
|
|
|
# Depends on: python3-setuptools
|
2018-09-17 14:30:13 +02:00
|
|
|
# Optional: xclip
|
|
|
|
|
|
|
|
name=ddgr
|
2022-10-22 16:43:54 +02:00
|
|
|
version=2.1
|
2018-11-20 13:18:06 +01:00
|
|
|
release=1
|
2022-01-03 14:40:59 +01:00
|
|
|
source=(https://github.com/jarun/ddgr/archive/v$version/$name-$version.tar.gz)
|
2018-09-17 14:30:13 +02:00
|
|
|
|
|
|
|
build() {
|
2019-09-20 09:55:08 +02:00
|
|
|
cd $name-$version
|
2022-03-05 13:49:58 +01:00
|
|
|
|
2019-09-20 09:55:08 +02:00
|
|
|
make DESTDIR=$PKG PREFIX=/usr install
|
2022-01-03 14:40:59 +01:00
|
|
|
|
2022-03-05 13:49:58 +01:00
|
|
|
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
|
|
|
|
|
2019-09-20 09:55:08 +02:00
|
|
|
rm -rf $PKG/usr/share/doc
|
2018-09-17 14:30:13 +02:00
|
|
|
}
|