File: rules

package info (click to toggle)
xkeyboard-config 2.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,236 kB
  • sloc: xml: 10,062; python: 2,131; perl: 220; sh: 83; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 995 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

override_dh_auto_configure:
	dh_auto_configure -- \
	  -Dnon-latin-layouts-list=true \
	  -Dxorg-rules-symlinks=true

override_dh_auto_install:
	# Regular deb:
	(cd build; DESTDIR=$(CURDIR)/debian/xkb-data meson install)

	# Treat the udeb as an exact copy, but remove messages/pkg-config/man-pages:
	mkdir $(CURDIR)/debian/xkb-data-udeb
	cp -r $(CURDIR)/debian/xkb-data/* $(CURDIR)/debian/xkb-data-udeb
	rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/locale
	rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/man
	rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/pkgconfig

	# Now try and save some space, by getting rid of comments (in
	# non-XML files, let's be cautious), then of multiple spaces:
	find $(CURDIR)/debian/xkb-data-udeb/ ! -name '*.xml' -type f -print0 \
	  | xargs -0 perl -i -pe 's,//.*$$,,'
	find $(CURDIR)/debian/xkb-data-udeb/usr/share/X11 -type f -print0 \
	  | xargs -0 perl -i -pe 's/[ \t]+/ /g'

%:
	dh $@ --buildsystem=meson --builddirectory=build/