# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=searx pkgver=0.16.0 pkgrel=1 pkgdesc="Privacy-respecting metasearch engine" url="https://asciimoo.github.io/searx/" arch="noarch" license="AGPL-3.0" depends="python3 py3-certifi py3-babel py3-flask py3-flask-babel py3-idna py3-jinja2 py3-lxml py3-pygments py3-openssl py3-dateutil py3-yaml py3-requests" makedepends="py3-setuptools" options="!check" # many missing deps, e.g. py3-splinter source="https://github.com/asciimoo/searx/archive/v$pkgver/searx-$pkgver.tar.gz relax-dependencies.patch 1831.patch" prepare() { default_prepare # Searx only searches in $PWD for these by default sed \ -e 's|static_path : ""|static_path : "/usr/lib/python3.8/site-packages/searx/static"|' \ -e 's|templates_path : ""|templates_path : "/usr/lib/python3.8/site-packages/searx/templates"|' \ -i searx/settings.yml } build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" # Move the config to /etc mkdir -p "$pkgdir"/etc/searx mv "$pkgdir"/usr/lib/python*/site-packages/searx/settings.yml "$pkgdir"/etc/searx } sha512sums="4ea6d5a3cce8fb2b49d873f1ac16401ae7fb83672e5fe1e1b443b7b8563befeaa61e79e7383b85ff4360cbcf0a4bdf90e16cc7a16394f8b40c364d814404b03b searx-0.16.0.tar.gz 7ab2a9b3a14d878047f485667271e5b97102b2cc2b862cf07dc79bae4ddd0e08391aac89d7b1cdca90bfd77ae942c09e3bf4602015497b87530b3d84d06c9fe1 relax-dependencies.patch d85c9726882b841b4fc796616baaf2731b5d6d185c6df28bb296946700654cafb96c83242c4066630e56dbeeb54fc17750798049a9c73fe6c4514144b2fdd961 1831.patch"