Commit 9a193846 authored by Jonathan Carter's avatar Jonathan Carter

Add howto and script

parent 2f23c2f6
# 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
#!/bin/bash
# personal script: fragile!
# run in ~/src/ on snapperkob
# Usage: ./metapackage.sh APPNAME DEPENDENCIES
# DEPENDENCIES is a comma-separated list: NO SPACES
export APPNAME=$1
export DEPS=$@
export DEPENDENCIES=`echo $DEPS | sed -e "s/${APPNAME} //" -e 's/ /, /g'`
export EDITOR=/usr/bin/vim
mkdir $APPNAME-0.1
tar czf ${APPNAME}_0.1.tar.gz $APPNAME-0.1
cd $APPNAME-0.1
dh_make -s -n -f ../${APPNAME}_0.1.tar.gz
rm debian/*.ex debian/*.EX debian/README.Debian debian/README.source debian/docs debian/README
sed -ie 's#Homepage:.*#Homepage: https://launchpad.net/~aims#' debian/control
sed -ie "s/misc:Depends}/misc:Depends}, ${DEPENDENCIES}/" debian/control
$EDITOR debian/control
rm debian/controle
sed -ie 's/unstable/trusty/' debian/changelog
rm debian/changeloge
dch
debuild -k'Jan Groenewald (Www.aims.ac.za) <jan@aims.ac.za>' -S -sa
cd ..
dput ppa:aims/aims-desktop ${APPNAME}_0.1_source.changes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment