File: rules

package info (click to toggle)
retext 7.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,648 kB
  • sloc: python: 4,971; xml: 120; makefile: 19; sh: 8
file content (27 lines) | stat: -rwxr-xr-x 873 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

ICONSDIR=debian/retext/usr/share/icons/hicolor

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

override_dh_auto_install:
	LC_ALL=C.UTF-8 dh_auto_install -- --install-args="--install-lib=/usr/share/retext"
	install -m 755 -p -T debian/retext.py debian/retext/usr/bin/retext
	rm -rfv debian/retext/usr/share/retext/icons
	for size in 16 22 24 32 48 128; do \
		mkdir -p $(ICONSDIR)/$$size\x$$size/apps/; \
		convert -resize $$size icons/retext.png +set date:create +set date:modify -define png:exclude-chunk=time \
		$(ICONSDIR)/$$size\x$$size/apps/retext.png; \
	done

override_dh_auto_test:
	LC_ALL=C.UTF-8 dh_auto_test -- --system custom --test-args \
		"xvfb-run -a -s '-screen 0 1024x768x24' {interpreter} setup.py test"

override_dh_installchangelogs:
	dh_installchangelogs changelog.md

override_dh_compress:
	dh_compress -X.md