[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: packaging perl modules



>>>>> "G" == G John Lapeyre <lapeyre@newton.physics.arizona.edu> writes:

    G> 	I am packaging some perl modules.  Does anyone have scripts
    G> designed specifically to aid in doing this ?

I've found the following debian/rules file *really* makes packaging up
Perl modules easily:

Note that this debian/rules file uses debhelper.

#!/usr/bin/make -f

build: build-stamp
build-stamp:
	dh_testdir
	perl Makefile.PL INSTALLDIRS=perl
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) distclean
	dh_clean

# Build architecture-independent files here.
binary-indep: build

# Build architecture-dependent files here.
binary-arch: build libdbd-mysql-perl

libdbd-mysql-perl: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs
	$(MAKE) PREFIX=`pwd`/debian/tmp/usr INSTALLMAN1DIR=`pwd`/debian/tmp/usr/man/man1 INSTALLMAN3DIR=`pwd`/debian/tmp/usr/man/man3 install
	dh_installdocs README
	dh_installchangelogs
	dh_strip 
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_du 
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary


-- 
Brought to you by the letters E and I and the number 3.
"Ha ha! I have evaded you with the aid of these pasty white mints!"
Ben Gertzfield <http://www.imsa.edu/~wilwonka/> Finger me for my public
PGP key. I'm on FurryMUCK as Che, and EFNet and YiffNet IRC as Che_Fox.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: