diff options
author | Manoj Srivastava <srivasta@debian.org> | 2014-04-13 01:55:53 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2014-04-13 01:55:53 -0700 |
commit | 426dc13ddbb45c8b5130da2a38b5b60d9b613f54 (patch) | |
tree | 9b7a057ff7651038e0360b3f7f54d6855ab60d64 /debian/rules |
wm-icons (0.4.0-9) unstable; urgency=low
* Bug fix: "/etc/menu-methods/wm-icons returned error status 1.", thanks
to Andreas Metzler. As Andreas points out, the content of
debian/$package.menu-method is not parsed as a list of files that will
be installed in /etc/menu-methods/ but it *is* the file being
installed. In this case, the file is not a static menu methods file,
but is generated at build time. I have now replaced the file as a
link, which will no longer be dangling after the package is built.
(Closes: #744341).
# imported from the archive
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..23a63cf --- /dev/null +++ b/debian/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 +SRCTOP:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) +TMPTOP=$(SRCTOP)/debian/wm-icons +DOCDIR=$(TMPTOP)/usr/share/doc/wm-icons +INSTALL = install +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif +install_file = $(INSTALL) -p -o root -g root -m 644 +install_program = $(INSTALL) -p -o root -g root -m 755 +install_script = $(INSTALL) -p -o root -g root -m 755 +make_directory = $(INSTALL) -p -d -o root -g root -m 755 +package:=wm-icons +METHODSDIR = $(TMPTOP)/etc/menu-methods +METHODSLOC = $(TMPTOP)/etc/X11/fvwm/wm-icons + +%: + dh $@ --with autoreconf + +override_dh_auto_configure: + ac_cv_lib_util_getloadavg=no dh_auto_configure -- \ + --sysconfdir=/etc --enable-all-sets + +override_dh_install: + dh_install + (cd $(TMPTOP)/usr/share/icons/wm-icons/; \ + rm -f menu mini norm; \ + ln -s 16x16-general menu; \ + ln -s 14x14-general mini; \ + ln -s 48x48-general norm;) + +override_dh_installdocs: + $(make_directory) $(DOCDIR) + $(make_directory) $(METHODSDIR) + mv $(TMPTOP)/usr/share/wm-icons $(DOCDIR)/examples/ + $(install_file) $(DOCDIR)/examples/debian-menu-system/wm-icons.h \ + $(METHODSDIR)/ + $(install_file) $(DOCDIR)/examples/debian-menu-system/wm-icons-data.h \ + $(METHODSDIR)/ + rm -rf $(DOCDIR)/examples/debian-menu-system + dh_installdocs + +#Local variables: +#mode: makefile +#End: |