1How to build a package:
2
3Read the guides or at least install the necessary packages as detailed here:
4
5http://www.debian.org/doc/maint-guide/index.en.html
6https://wiki.ubuntu.com/PackagingGuide/Complete
7
8
9Set-up your ~/.bachrc so the package scripts known who you are:
10e.g.
11export DEBFULLNAME='Paul Broadhead'
12export DEBEMAIL='pjbroad@twinmoons.org.uk'
13
14
15If you're going to sign the package make sure you have keys set-up:
16https://help.ubuntu.com/community/GnuPrivacyGuardHowto
17
18Now we're ready:
19
20Set the version number
21
22	elver="1.9.4"
23	packagename="eternallands-sound"
24
25Make a destination directory:
26
27	mkdir ${packagename}-${elver}
28
29Copy packaging files:
30
31	rm -rf ${packagename}-${elver}/debian
32	cp -a sound/debian/ ${packagename}-${elver}/
33
34Append the licence file and clean up:
35
36	wget -O - http://www.eternal-lands.com/page/license.txt | fmt -w 79 >> ${packagename}-${elver}/debian/copyright
37	less ${packagename}-${elver}/debian/copyright
38
39Save the source archive:
40
41	tar cfz ${packagename}_${elver}.orig.tar.gz ${packagename}-${elver}
42
43Move into package directory:
44
45	cd ${packagename}-${elver}/
46
47Make any modifications required then update the changelog:
48
49	dch --release --force-save-on-release
50
51Build the package:
52
53	debuild
54	debuild -S -sa
55