blob: 0736a2b05a991e94aa7a653a5e4e67433bc30f3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Jean Lucas <jean@4ray.co>
# Contributor: Reventlov <contact+aur at volcanis dot me>
pkgname=searx-git
pkgver=0.15.0+77+g8189b0d1
pkgrel=1
pkgdesc='Privacy-respecting metasearch engine (git)'
arch=(any)
url=https://asciimoo.github.io/searx/
license=(AGPL3)
depends=(python2-certifi
python2-flask
python2-flask-babel
python2-lxml
python2-idna
python2-pygments
python2-pyopenssl
python2-dateutil
python2-yaml
python2-requests
python2-pysocks)
makedepends=(git openssl)
optdepends=('filtron: Filtering reverse-HTTP proxy'
'morty: Privacy-aware web content sanitizer proxy-as-a-service')
provides=(searx)
conflicts=(searx)
backup=(etc/searx.conf)
source=(git+https://github.com/asciimoo/searx
searx.service
searx.sysusers.d
searx.tmpfiles.d)
sha512sums=('SKIP'
'cc58068e502b088c61016a5cd25db248f5fae146f18e00253f3aa0ccd666189ef3a407e00bf9181c23e643e68df7e4f9eec295bf680c982052978c2786325d0a'
'39b765ade096778ad945725e0ca5c0919e4baff4e7a466e0d093e68d1a92c563a5437caed01e44accf04ac51450007e659435d32a84e818df213de3f9e546793'
'65b0d25c8673756f145b0113fd49af36062d68c1dbd6009fbc658bf365579f672aadd6f6e7fd66f1e49215ffb9c1ecf58b26c2f7f85319eb011094b20f80ff85')
pkgver() {
cd searx
git describe --tags | sed 's/v//;s/-/+/g'
}
prepare() {
cd searx
# Allow newer versions of Python 2 libraries since we like to break stuff
sed -i 's/==/>=/g' requirements.txt
}
package() {
install -Dm 644 searx.service -t "$pkgdir"/usr/lib/systemd/system
install -Dm 644 searx.sysusers.d "$pkgdir"/usr/lib/sysusers.d/searx.conf
install -Dm 644 searx.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/searx.conf
cd searx
python2 setup.py install --root="$pkgdir" --optimize=1
# Move searx files into searx folder since they're incorrectly spread out
mv "$pkgdir"/usr/lib/python2.7/site-packages/{README.rst,requirements*,searx}
install -Dm 600 searx/settings.yml "$pkgdir"/etc/searx.conf
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/searx
}
|