2018-06-01 08:08:14 -04:00
|
|
|
# Maintainer: Jake <aur@ja-ke.tech>
|
2016-11-05 01:29:34 -04:00
|
|
|
# Based on searx-git, thanks to:
|
|
|
|
# Jean Lucas <jean at 4ray dot co> and Reventlov <contact+aur at volcanis dot me>
|
|
|
|
|
|
|
|
pkgname=searx
|
2018-06-01 08:08:14 -04:00
|
|
|
pkgver=0.14.0
|
2017-11-24 16:32:00 -05:00
|
|
|
pkgrel=1
|
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')
|
2017-07-01 12:45:39 -04:00
|
|
|
depends=( 'python2-certifi'
|
|
|
|
'python2-flask'
|
|
|
|
'python2-flask-babel'
|
|
|
|
'python2-lxml'
|
|
|
|
'python2-idna'
|
|
|
|
'python2-pygments'
|
|
|
|
'python2-pyopenssl'
|
|
|
|
'python2-dateutil'
|
|
|
|
'python2-yaml'
|
|
|
|
'python2-requests'
|
|
|
|
'python2-pysocks')
|
2016-11-05 01:29:34 -04:00
|
|
|
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')
|
2018-06-01 08:08:14 -04:00
|
|
|
sha512sums=('97478d0dd61201510542d6574e7d59f43159fc30608257b8d31200567591e6fc0c1a41a6614e74e29988e4f76d0eae276688e060a6fe7d021fa29e23bbc80b76'
|
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
|
|
|
|
|
2018-06-01 08:08:14 -04:00
|
|
|
mv $pkgdir/usr/lib/python2.7/site-packages/{README.rst,requirements*,tests,searx}
|
2016-11-05 01:29:34 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|