Name xkb-data
Description X Keyboard Extension (XKB) configuration data
Version 2.41-2ubuntu1.1
Package Base xkeyboard-config
Homepage https://www.freedesktop.org/Software/XKeyboardConfig
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/xkeyboard-config/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/xkb-data/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/xkeyboard-config/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/xkeyboard-config/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/xkeyboard-config/plain/debian/patches/symbols-de-Add-German-Noted-layout.patch?h=ubuntu/noble']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'meson', 'quilt']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash e99f2a0b4c56cdf35dec489e56b6a8418826cab8ce6306ec6d0bd98e2cd0014a
#!/usr/bin/make -f

xkb_base := /usr/share/X11/xkb

override_dh_auto_configure:
	dh_auto_configure -- \
	  -Dxkb-base=$(xkb_base) \
	  -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'

override_dh_clean:
	dh_clean
	rm -f po/*.gmo po/*.pot rules/evdev*.xml
	rm -rf m4

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