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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
NOT_INSTALLED = glsync \
glthreads \
glxcontexts \
glxgears_fbconfig \
glxgears_pixmap \
glxpbdemo \
glxpixmap \
glxsnoop \
glxswapcontrol \
manywin \
multictx \
offset \
overlay \
pbdemo \
pbinfo \
shape \
sharedtex \
sharedtex_mt \
texture_from_pixmap \
wincopy \
xfont \
xrotfontdemo
%:
dh $@ --with=quilt \
--builddirectory=build/ \
--buildsystem=meson
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
for app in $(NOT_INSTALLED); do \
rm -f debian/tmp/usr/bin/$$app; \
done
override_dh_install:
for app in `ls debian/tmp/usr/bin`; do \
mv -f debian/tmp/usr/bin/$$app debian/tmp/usr/bin/$$app.${DEB_HOST_MULTIARCH}; \
ln -s /usr/bin/$$app.${DEB_HOST_MULTIARCH} debian/tmp/usr/bin/$$app; \
done
dh_install
ifeq ($(DEB_HOST_ARCH_OS), linux)
mv debian/tmp/usr/bin/es2gears_wayland \
debian/mesa-utils/usr/bin
mv debian/tmp/usr/bin/es2gears_wayland.* \
debian/mesa-utils-bin/usr/bin
endif
|