summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 01fe5930f75f135edb0e1c273677a0e0ee59dcbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/make -f

#export DH_VERBOSE = 1

export PYBUILD_DISABLE_python2=1

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	python3 ./debian/ionicons/generate_less.py < ./debian/ionicons/input.json > searx/static/themes/simple/less/ion.less
	dh_auto_build
	./manage.sh styles # needed to run lessc because grunt-contrib-less is not packaged
	./manage.sh locales # run pybabel
	./manage.sh grunt_build # build the oscar theme
	python3 ./debian/ionicons/generate.py < ./debian/ionicons/input.json

# do not run tests because the splinter python3 module is not packaged yet
override_dh_auto_test: