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/
|