| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
override_dh_auto_configure: |
| 4 |
dh_auto_configure -- \ |
| 5 |
-Dnon-latin-layouts-list=true \ |
| 6 |
-Dxorg-rules-symlinks=true |
| 7 |
|
| 8 |
override_dh_auto_install: |
| 9 |
# Regular deb: |
| 10 |
(cd build; DESTDIR=$(CURDIR)/debian/xkb-data meson install) |
| 11 |
|
| 12 |
# Treat the udeb as an exact copy, but remove messages/pkg-config/man-pages: |
| 13 |
mkdir $(CURDIR)/debian/xkb-data-udeb |
| 14 |
cp -r $(CURDIR)/debian/xkb-data/* $(CURDIR)/debian/xkb-data-udeb |
| 15 |
rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/locale |
| 16 |
rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/man |
| 17 |
rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/pkgconfig |
| 18 |
|
| 19 |
# Now try and save some space, by getting rid of comments (in |
| 20 |
# non-XML files, let's be cautious), then of multiple spaces: |
| 21 |
find $(CURDIR)/debian/xkb-data-udeb/ ! -name '*.xml' -type f -print0 \ |
| 22 |
| xargs -0 perl -i -pe 's,//.*$$,,' |
| 23 |
find $(CURDIR)/debian/xkb-data-udeb/usr/share/X11 -type f -print0 \ |
| 24 |
| xargs -0 perl -i -pe 's/[ \t]+/ /g' |
| 25 |
|
| 26 |
%: |
| 27 |
dh $@ --buildsystem=meson --builddirectory=build/ |