summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/applications/knmap/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-26 15:40:13 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-26 15:40:33 +0200
commitd0c3744a551346c90e7d6b828c7898e0b6df6bcf (patch)
tree7067f20d051c8ea8581e8c1023d99103e4080f35 /ubuntu/raring/applications/knmap/debian/rules
parent24aecadc7741f2f5af3e8946baf285aa8a9ee035 (diff)
downloadtde-packaging-d0c3744a551346c90e7d6b828c7898e0b6df6bcf.tar.gz
tde-packaging-d0c3744a551346c90e7d6b828c7898e0b6df6bcf.zip
Fix knmap packaging files for Debian and Ubuntu
Diffstat (limited to 'ubuntu/raring/applications/knmap/debian/rules')
-rwxr-xr-xubuntu/raring/applications/knmap/debian/rules38
1 files changed, 27 insertions, 11 deletions
diff --git a/ubuntu/raring/applications/knmap/debian/rules b/ubuntu/raring/applications/knmap/debian/rules
index 1612bbf8a..348e53573 100755
--- a/ubuntu/raring/applications/knmap/debian/rules
+++ b/ubuntu/raring/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