#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all # All libraries are installed in a subdirectory as per Policy 10.2. export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed \ -Wl,-rpath,/usr/lib/gworkspace include /usr/share/GNUstep/debian/config.mk %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ --enable-gwmetadata \ --with-unzip=unzip override_dh_auto_build: dh_auto_build -- $(optim) \ messages=yes \ $(shell dpkg-buildflags --export=cmdline) override_dh_auto_install: # Cheat gnustep-make to install all libraries as private. dh_auto_install -- install \ GNUSTEP_SYSTEM_LIBRARIES=/usr/lib/gworkspace \ DESTDIR=$(CURDIR)/debian/tmp override_dh_installman: dh_installman # Create symlinks for the manpages. Deliberately do not derive the # programs' list from /usr/bin -- if a tool is added upstream; the # manpage has to be updated. for p in ddbd fswatcher lsfupdater searchtool wopen Recycler; do \ dh_link -pgworkspace.app \ usr/share/man/man1/GWorkspace.1 usr/share/man/man1/$$p.1; \ done for p in gmds mdextractor; do \ dh_link -pmdfinder.app usr/share/man/man1/MDFinder.1 \ usr/share/man/man1/$$p.1; \ done override_dh_fixperms: dh_fixperms # Fix .tiff files permissions find debian -name "*.tiff" -perm 0755 -exec chmod -v 0644 {} \; # Fix .desktop files permissions find debian -name "*.desktop" -perm 0755 -exec chmod -v 0644 {} \; # At least one .plist file is also executable. find debian -name "*.plist" -perm 0755 -exec chmod -v 0644 {} \; override_dh_missing: # Reminder to update .install/.links when a new extractor/inspector or # a new tool is added. dh_missing -Xstamp.make --list-missing override_dh_strip: dh_strip --dbgsym-migration='gworkspace-dbg (<< 0.9.4-1~)' override_dh_makeshlibs: # Avoid lintian warnings for private libraries in /usr/lib/gworkspace. dh_makeshlibs -n