[need tester] Voicenote - record voice notes
Timo Juhani Lindfors
timo.lindfors at iki.fi
Thu Feb 19 18:54:45 CET 2009
kimaidou <kimaidou at gmail.com> writes:
> cd /
> tar -xvf voicenote_debian.tar
Please don't do this. Only package manager may put files to /usr. Use
/usr/local or $HOME or create a proper package:
1) create an initial package template:
lindi1:~/tmp$ mkdir voicenote-0.01
lindi1:~/tmp$ cd voicenote-0.01/
lindi1:~/tmp/voicenote-0.01$ tar xf ../voicenote_debian.tar
lindi1:~/tmp/voicenote-0.01$ dh_make -s --createorig
Maintainer name : Timo Lindfors
Email-Address : lindi at kurp.hut.fi
Date : Thu, 19 Feb 2009 19:48:15 +0200
Package Name : voicenote
Version : 0.01
License : blank
Using dpatch : no
Type of Package : Single
Hit <enter> to confirm:
Currently there is no top level Makefile. This may require additional tuning.
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the voicenote Makefiles install into $DESTDIR and not in / .
2) edit debian/rules: you need to comment out all lines that say
$(MAKE) since you are not providing a makefile. After that add
cp -a ./usr $(CURDIR)/debian/voicenote
to the end of the install: target in debian/rules.
3) edit debian/control: add zenity and alsa-utils to the "Depends:" line.
4) remove example templates that we did not need: rm debian/*.ex debian/*.EX
5) build a package:
lindi1:~/tmp/voicenote-0.01$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package voicenote
dpkg-buildpackage: source version 0.01-1
dpkg-buildpackage: source changed by Timo Lindfors <lindi at kurp.hut.fi>
dpkg-buildpackage: host architecture amd64
...
dpkg-deb: building package `voicenote' in `../voicenote_0.01-1_amd64.deb'.
signfile voicenote_0.01-1.dsc
6) install the package to see that everything works:
lindi1:~/tmp/voicenote-0.01$ sudo dpkg -i ../voicenote*.deb
(Reading database ... 115315 files and directories currently installed.)
Preparing to replace voicenote 0.01-1 (using ../voicenote_0.01-1_amd64.deb) ...
Unpacking replacement voicenote ...
Setting up voicenote (0.01-1) ...
lindi1:~/tmp/voicenote-0.01$ dpkg -L voicenote
/.
/usr
/usr/bin
/usr/bin/voicenote.sh
/usr/share
/usr/share/pixmaps
/usr/share/pixmaps/voicenote.png
/usr/share/applications
/usr/share/applications/voicenote.desktop
/usr/share/doc
/usr/share/doc/voicenote
/usr/share/doc/voicenote/copyright
/usr/share/doc/voicenote/changelog.Debian.gz
/usr/share/doc/voicenote/README.Debian
/usr/sbin
More information about the community
mailing list