🗝
summary refs log tree commit diff
path: root/packages/searxng/PKGBUILD
blob: 1b0d2430a9230b97b45634570bd06a2b01f35f6e (plain) (blame)
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
# adapted from searxng-git 1.0.0.r3824.gac430a9ea-1

pkgname=searxng
_date=2024.07.14
_commit=2039060b6
pkgver=$_date+$_commit
pkgrel=1
pkgdesc="A privacy-respecting, hackable metasearch engine"
arch=(any)
url="https://github.com/searxng/searxng"
makedepends=(python python-setuptools)
depends=(
	python-async-timeout
	python-babel
	python-brotli
	python-certifi
	python-dateutil
	python-fasttext-predict
	python-flask
	python-flask-babel
	python-h2
	python-httpx
	python-httpx-socks
	python-jinja
	python-lxml
	python-markdown-it-py
	python-pygments
	python-pytomlpp
	python-redis
	python-setproctitle
	python-uvloop
	python-yaml
	gunicorn
)
source=("git+$url#commit=$_commit" searxng.sysusers searxng.service searxng.socket)
sha256sums=(SKIP SKIP SKIP SKIP)

package() {
	cd "$srcdir/searxng"
	local _site_packages="$(python -c 'import site; print(site.getsitepackages()[0])')"

	python setup.py install --root="$pkgdir" --optimize=1
	python -m searx.version freeze

	install -Dm644 "$srcdir/searxng.sysusers" "$pkgdir/usr/lib/sysusers.d/searxng.conf"
	install -Dm644 "$srcdir/searxng/searx/version_frozen.py" "$pkgdir$_site_packages/searx/version_frozen.py"
	install -Dm644 "$srcdir/searxng/LICENSE" "$pkgdir/usr/share/licenses/searxng/LICENSE"
	install -Dm644 "$srcdir/searxng.service" "$pkgdir/usr/lib/systemd/system/searxng.service"
	install -Dm644 "$srcdir/searxng.socket" "$pkgdir/usr/lib/systemd/system/searxng.socket"
}