From d0c3744a551346c90e7d6b828c7898e0b6df6bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 26 Jul 2013 15:40:13 +0200 Subject: Fix knmap packaging files for Debian and Ubuntu --- ubuntu/precise/applications/knmap/debian/rules | 38 ++++++++++++++++++-------- 1 file changed, 27 insertions(+), 11 deletions(-) (limited to 'ubuntu/precise/applications/knmap/debian/rules') diff --git a/ubuntu/precise/applications/knmap/debian/rules b/ubuntu/precise/applications/knmap/debian/rules index 1612bbf8a..348e53573 100755 --- a/ubuntu/precise/applications/knmap/debian/rules +++ b/ubuntu/precise/applications/knmap/debian/rules @@ -1,21 +1,36 @@ #!/usr/bin/make -f -cdbs_kde_enable_debug = --disable-debug - include /usr/share/cdbs/1/rules/simple-patchsys.mk include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/kde.mk +include debian/cdbs/kde.mk + +DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include +DEB_CONFIGURE_MANDIR := /opt/trinity/share/man +DEB_CONFIGURE_PREFIX := /opt/trinity +DEB_CONFIGURE_INFODIR := /opt/trinity/share/info + +DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ + && echo xz || echo bzip2) + +post-patches:: debian/stamp-bootstrap + +debian/stamp-bootstrap: + dh_testdir -DEB_INSTALL_MANPAGES_knmap-trinity = knmap.1 + # Regenerate build system + ! [ -f /usr/share/libtool/ltmain.sh ] || \ + cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh + ! [ -f /usr/share/libtool/config/ltmain.sh ] || \ + cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh + cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in -post-patches:: - # regenerating files to build app - $(MAKE) -f Makefile.cvs + autoreconf --install && automake -f && \ + $(MAKE) -f admin/Makefile.common && \ + touch debian/stamp-bootstrap -install/knmap-trinity:: - dh_install src/knmap.desktop usr/share/applications/tde - dh_link opt/trinity/share/doc/tde/HTML/en/knmap usr/share/doc/knmap/html - dh_iconcache +binary-install/knmap-trinity:: + dh_link opt/trinity/share/doc/tde/HTML/en/knmap usr/share/doc/$(cdbs_curpkg)/html + mv debian/$(cdbs_curpkg)/usr/share/man debian/$(cdbs_curpkg)/opt/trinity/share/ build/knmap-trinity:: docbook2x-man debian/knmap.1.docbook @@ -29,3 +44,4 @@ clean:: rm -f Makefile.in rm -f subdirs rm -f aclocal.m4 + rm -f debian/stamp-bootstrap -- cgit v1.2.1