Mailinglist Archive: opensuse-buildservice (207 mails)

< Previous Next >
Re: [opensuse-buildservice] How to build deb packages
  • From: Piotr Pokora <piotrek.pokora@xxxxxxxxx>
  • Date: Wed, 01 Apr 2009 00:12:42 +0200
  • Message-id: <49D2955A.5090302@xxxxxxxxx>
Richard Bos writes:

Hi!

inkomstenbelasting-2008.tar.bz2
Use tar.gz upstream tarballs. You shouldn't have problems with Debian
Lenny and Ubuntu 8.10.

That's the problem, there are no upstream tarballs hence I need to come with
the code.

I wonder, maybe this is even better?
You can create directories and subdirectories and tar.gz'em all.

%__install -m 644 icons/$D/inkomstenbelasting.png
%{buildroot}%{_datadir}/icons/hicolor/$D/apps
Create debian.PACKAGENAME.install file if those are provided by upstream.

What will this do?

dh_install command installs all files which are listed in
PACKAGENAME.install file.
So, all you have to do, is to add dh_install to rules file.
*If* you want to use .install routines.

In rules file (it's only Makefile anyway):

install:
belastingdienst.nl
debian/PACKAGENAME/usr/share/PACKAGENAME/belastingdienst.nl

in debian.PACKAGENAME.install:

usr/share/PACKAGENAME/belastingdienst.nl

Or you can just copy all files in `debian/rules install`.
Take a look how PHP (and extensions) packages are built for example.

Piotras


--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >