2016-11-05 01:29:34 -04:00
|
|
|
# Maintainer: Jake <ja.ke@posteo.de>
|
|
|
|
# Based on searx-git, thanks to:
|
|
|
|
# Jean Lucas <jean at 4ray dot co> and Reventlov <contact+aur at volcanis dot me>
|
|
|
|
|
|
|
|
pkgname=searx
|
2017-01-20 10:44:07 -05:00
|
|
|
pkgver=0.11.0
|
2017-03-13 12:19:25 -04:00
|
|
|
pkgrel=2
|
2016-11-05 01:29:34 -04:00
|
|
|
pkgdesc="A privacy-respecting, hackable metasearch engine"
|
|
|
|
arch=('any')
|
|
|
|
url="https://asciimoo.github.io/searx/"
|
|
|
|
license=('AGPL')
|
|
|
|
makedepends=('openssl')
|
|
|
|
depends=('python2-flask'
|
|
|
|
'python2-flask-babel'
|
|
|
|
'python2-requests'
|
|
|
|
'python2-lxml'
|
|
|
|
'python2-yaml'
|
|
|
|
'python2-dateutil'
|
|
|
|
'python2-pygments'
|
|
|
|
'python2-certifi'
|
2017-01-20 10:44:07 -05:00
|
|
|
'python2-pyasn1'
|
2016-11-05 01:29:34 -04:00
|
|
|
'python2-ndg-httpsclient'
|
|
|
|
'python2-pysocks')
|
|
|
|
conflicts=('searx-git')
|
|
|
|
backup=('etc/searx/settings.yml')
|
|
|
|
install=searx.install
|
2017-01-20 10:44:07 -05:00
|
|
|
source=("https://github.com/asciimoo/searx/archive/v$pkgver.zip"
|
2016-11-05 01:29:34 -04:00
|
|
|
'searx.install'
|
|
|
|
'searx.service')
|
2017-01-20 10:44:07 -05:00
|
|
|
sha512sums=('f1f28d6135ef2a8e254a700ae9ef3366fccc83f1c2c2574f4d276347304bae6aa397f5d3a4bad4f66b19b13470c6cc724eee2c68bc004a4876a7804a7c79b97a'
|
2016-11-05 01:29:34 -04:00
|
|
|
'daf98a69d87dc78ea645a02146d67b0a2903b3b219edadf2e3c987c20d0751ac147b72fe185c74bfe3e0b154ed8ee4b9b503e7ca922548fad52157aada05803c'
|
2017-03-13 12:19:25 -04:00
|
|
|
'64ab805f7e0089d9b638c2972687ba60331304b3d63bfff138ce8b7903d999f40854067c384cafbc6c635afc335bd084b758cbb7c5cac397d97ed1f31e67ac6e')
|
2016-11-05 01:29:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/searx-$pkgver
|
|
|
|
|
|
|
|
# Allow newer versions of the dependencies
|
|
|
|
sed -i "s|==|>=|g" requirements.txt
|
|
|
|
|
|
|
|
# Generate a random secret key
|
|
|
|
sed -i -e "s/ultrasecretkey\" # change this!/`openssl rand -hex 32`\"/g" searx/settings.yml
|
|
|
|
|
|
|
|
python2 setup.py install --root=$pkgdir --optimize=1
|
|
|
|
|
|
|
|
mv $pkgdir/usr/lib/python2.7/site-packages/{README.rst,searx/}
|
|
|
|
mv $pkgdir/usr/lib/python2.7/site-packages/{tests,searx/}
|
|
|
|
|
|
|
|
mkdir -p $pkgdir/etc/searx
|
|
|
|
mv $pkgdir/usr/lib/python2.7/site-packages/searx/settings.yml $pkgdir/etc/searx/
|
|
|
|
ln -s /etc/searx/settings.yml $pkgdir/usr/lib/python2.7/site-packages/searx/settings.yml
|
|
|
|
|
|
|
|
install -Dm0644 ../searx.service $pkgdir/usr/lib/systemd/system/searx.service
|
|
|
|
}
|