HOWTO-metapackage.txt 1.35 KB
Newer Older
Jonathan Carter's avatar
Jonathan Carter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# Originally from http://www.twinaxis.com/pmwiki/Linux/MetaPackage
# sudo aptitude install dh-make devscripts fakeroot dput
# export DEBFULLNAME="John Doe"
# export DEBEMAIL="user@example.com"

export PROGNAME=foobar
mkdir $PROGNAME-0.1
tar czf $PROGNAME_0.1.tar.gz $PROGNAME-0.1
cd $PROGNAME-0.1
dh_make -s -n -f ../$PROGNAME-0.1.tar.gz
<ENTER>
rm debian/*.ex debian/*.EX debian/README.Debian debian/README.Source

$EDITOR debian.control
 Source: $PROGNAME
 Section: misc 		 <- MUST be debian section
 Priority: extra
 Maintainer: John Doe <user@example.com>
 Build-Depends: debhelper (>= 5)
 Standards-Version: 3.7.2

 Package: $PROGNAME
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, other-package, the-package <- your dependencies
 Description: FooBar metapackage
  This metapackage includes many things.

#Write the changelog entry

dch
#( change 'distroseries' from unstable to precise ; in future use dch -i to increment version )

#Build and sign the source package. (Leave out the -S for a binary package.)

debuild -k'Jan Groenewald (Www.aims.ac.za) <jan@aims.ac.za>' -S -sa
# ( -b for binary )
#Upload the package to PPA

cd ..
dput ppa:aims/aims-desktop $PROGNAME_0.1_source.changes

# UPDATING IF YOU DO NOT HAVE SOURCES:
Get the sources together (foobar.dsc, foobar_0.1.tar.gz).
Extract the source
 $ dpkg-source -x foobar_0.1.dsc
 $ cd foobar-0.1