#!/usr/bin/make -f CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS = $(shell dpkg-buildflags --get CFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) export CPPFLAGS CFLAGS LDFLAGS WINDOWLAB_VERSION = 1.40 WINDOWLAB_MD5SUM = 346f8c187838a446b4cbb2326d035577 WINDOWLAB_TARBALL = windowlab-$(WINDOWLAB_VERSION).tar %: dh $@ override_dh_install: dh_install chmod +x debian/windowlab/usr/lib/windowlab/create_menu.sh chmod +x debian/windowlab/etc/menu-methods/windowlab override_dh_installwm: dh_installwm --priority=40 get-orig-source: @if [ -e $(WINDOWLAB_TARBALL) -o -e windowlab-$(WINDOWLAB_VERSION) \ -o -e windowlab-$(WINDOWLAB_VERSION).tar.gz ] ; then \ echo "target files or temporary files do already exist" >&2 ; \ false ; \ fi # wget -nv http://nickgravgaard.com/windowlab/windowlab-$(WINDOWLAB_VERSION).tar # @MD5=$$(md5sum $(WINDOWLAB_TARBALL) | cut -d' ' -f 1) ; \ if [ x$$MD5 != x$(WINDOWLAB_MD5SUM) ] ; then \ echo "MD5 sum of upstream tarball has changed." >&2 ; \ echo " expected: $(WINDOWLAB_TARBALL)" >&2 ; \ echo " got: $$MD5" >&2 ; \ false ; \ else \ echo "MD5 sum ok." ; \ fi tar xf windowlab-$(WINDOWLAB_VERSION).tar chmod 0644 windowlab-$(WINDOWLAB_VERSION)/* tar cfz windowlab-$(WINDOWLAB_VERSION).tar.gz windowlab-$(WINDOWLAB_VERSION) rm -rf windowlab-$(WINDOWLAB_VERSION).tar windowlab-$(WINDOWLAB_VERSION)