debian rules patch

James LewisMoss dres@phoenixdsl.com
21 Nov 2000 12:53:00 -0500


I'm producing debian packages out of CVS.  Here's the patch required
to do so:

Index: debian/rules
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/debian/rules,v
retrieving revision 1.5
diff -u -b -r1.5 rules
--- debian/rules	2000/06/04 21:40:15	1.5
+++ debian/rules	2000/11/21 17:46:58
@@ -7,14 +7,19 @@
 
 package=gnucash
 
+id= $(shell pwd)/debian/tmp
+
+#perlpriv =  $(id)$(shell perl -V:installprivlib | perl -pe 's/.*\'(.*)\'.*/\1/;')
+#perlarch = $(id)$(shell perl -V:installarchlib | perl -pe 's/.*\'(.*)\'.*/\1/;')
 build: build-stamp
 build-stamp:
 	dh_testdir
 	$(checkdir)
-	CFLAGS="-fsigned-char -g" ./configure --prefix=/usr
-	make depend
-	make gnome
-	touch build
+	./configure --prefix=/usr \
+		--sysconfdir=/etc \
+		--infodir=/usr/share/info \
+		--mandir=/usr/share/man
+	make 
 	touch build-stamp
 
 clean:
@@ -32,8 +37,16 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	make install prefix=`pwd`/debian/tmp/usr GNC_DOCDIR=`pwd`/debian/tmp/usr/share/doc
-	strip `pwd`/debian/tmp/usr/lib/gnucash/gnucash.so
+	make install prefix=$(id)/usr sysconfdir=$(id)/etc GNC_DOC_INSTALL_DIR=$(id)/usr/share/doc/gnucash infodir=$(id)/usr/share/info mandir=$(id)/usr/share/man
+	rm -f $(id)/usr/share/doc/gnucash/COPYING.gz
+
+	# no perl anymore
+	#mkdir -p $(perlpriv)
+	#mv $(id)/usr/share/gnucash/perl/gnucash.pm $(perlpriv)
+	#mkdir -p $(perlarch)
+	#mv $(id)/usr/share/gnucash/perl/* $(perlarch)
+	#-rmdir -p $(id)/usr/share/gnucash/perl
+
 	touch install-stamp
 
 binary-indep: build install


-- 
@James LewisMoss <dres@debian.org>      |  Blessed Be!
@    http://jimdres.home.mindspring.com |  Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach