rev 7901 - kde-extras/filelight/branches/newpackaging/debian
Raúl Sánchez Siles
kebianizao-guest at alioth.debian.org
Thu Nov 15 07:39:29 UTC 2007
Author: kebianizao-guest
Date: 2007-11-15 07:39:29 +0000 (Thu, 15 Nov 2007)
New Revision: 7901
Modified:
kde-extras/filelight/branches/newpackaging/debian/rules
Log:
Changed rules to use CDBS. I can't believe I've been able to do this!
Modified: kde-extras/filelight/branches/newpackaging/debian/rules
===================================================================
--- kde-extras/filelight/branches/newpackaging/debian/rules 2007-11-15 01:39:16 UTC (rev 7900)
+++ kde-extras/filelight/branches/newpackaging/debian/rules 2007-11-15 07:39:29 UTC (rev 7901)
@@ -1,90 +1,22 @@
#!/usr/bin/make -f
-# debian/rules file - for filelight (1.0-beta6)
-# Based on sample debian/rules file - for GNU Hello (1.3).
-# Copyright 1994,1995 by Ian Jackson.
-# Copyright 2004 James Troup
+# debian/rules file - for filelight (1.0)
+# Copyright 2006 Raúl Sánchez Siles
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself. (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
-install_dir=install -d -m 755
-install_file=install -m 644
-install_script=install -m 755
-install_binary=install -m 755 -s
-STRIP=strip --remove-section=.comment --remove-section=.note
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/kde.mk
-include /usr/share/dpatch/dpatch.make
+DEB_INSTALL_MANPAGES_filelight := debian/filelight.1
-build: patch-stamp
- $(checkdir)
- ./configure --prefix=/usr --disable-debug
- $(MAKE)
- touch build
+DEB_CONFIGURE_EXTRA_FLAGS := --disable-debug
-clean: clean-stamp unpatch
-
-clean-stamp:
- $(checkdir)
- -rm -f build
- [ ! -f Makefile ] || $(MAKE) distclean
- -rm -rf debian/tmp debian/*~ debian/files* debian/substvars
- -rm -fr autom4te.cache config.log po/*.gmo
-
-binary-indep:
-
-binary-arch: checkroot build
- $(checkdir)
- -rm -rf debian/tmp
- $(install_dir) debian/tmp/DEBIAN/
- $(install_file) debian/conffiles debian/tmp/DEBIAN/
- $(install_script) debian/postinst debian/postrm debian/tmp/DEBIAN/
-
- make prefix=`pwd`/debian/tmp/usr configdir=`pwd`/debian/tmp/etc/kde3 kde_htmldir=`pwd`/debian/tmp/usr/share/doc/kde/HTML install
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- $(STRIP) debian/tmp/usr/bin/filelight
-endif
- chrpath -d debian/tmp/usr/bin/filelight
-
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- $(STRIP) --strip-unneeded debian/tmp/usr/lib/kde3/libfilelight.so
-endif
- chmod -x debian/tmp/usr/lib/kde3/libfilelight.so debian/tmp/usr/lib/kde3/libfilelight.la
- chrpath -d debian/tmp/usr/lib/kde3/libfilelight.so
-
-# rm debian/tmp/usr/share/doc/kde/HTML/en/filelight/common
-# ln -s ../common debian/tmp/usr/share/doc/kde/HTML/en/filelight/common
-
- $(install_dir) debian/tmp/usr/share/menu/
- $(install_file) debian/menu debian/tmp/usr/share/menu/filelight
- $(install_dir) debian/tmp/usr/share/man/man1/
- $(install_file) debian/filelight.1 debian/tmp/usr/share/man/man1/filelight.1
- gzip -9v debian/tmp/usr/share/man/man1/*
-
- $(install_dir) debian/tmp/usr/share/doc/filelight/
- $(install_file) debian/changelog debian/tmp/usr/share/doc/filelight/changelog.Debian
- $(install_file) AUTHORS README TODO debian/tmp/usr/share/doc/filelight/
- install -m 644 ChangeLog debian/tmp/usr/share/doc/filelight/changelog
- gzip -9v debian/tmp/usr/share/doc/filelight/*
- install -m 644 debian/copyright debian/tmp/usr/share/doc/filelight/
-
- dpkg-shlibdeps debian/tmp/usr/bin/filelight
- dpkg-gencontrol -isp
- chown -R root.root debian/tmp
- chmod -R go=rX debian/tmp
- dpkg --build debian/tmp ..
-
-define checkdir
- test -f src/app/mainWindow.cpp -a -f debian/rules
-endef
-
-# Below here is fairly generic really
-
-binary: binary-indep binary-arch
-
-checkroot:
- $(checkdir)
- test root = "`whoami`"
-
-.PHONY: binary binary-arch binary-indep clean checkroot
+#get-orig-source-dpatch:
+# @@dh_testdir
+# @@[ -d ../tarballs/. ]
+# @@dpatch-get-origtargz ../tarballs
More information about the pkg-kde-commits
mailing list