Debian package for listusb
To install, only the .deb
file is required
wget https://github.com/pauloserrafh/listusb-pkg/raw/master/listusb_1.0-1_amd64.deb
dpkg -i listusb_1.0-1_amd64.deb
listusb
If you want to rebuild after changing the source files:
First it is necessary to download the source tarball. On github is
possible to download as .zip
or as .tar.gz
if a release is created.
The file should be renamed to follow the pattern
listusb_X.Y.orig.tar.gz
Note:
X
andY
are the version indicators.orig
is required before the.tar.gz
extension.- The separator from package name and version is lodash
_
Extract the source tarball in a folder with the patern
listusb-X.Y
Note:
- The separator from package name and version is
-
X
andY
are the version indicators
-
Move to the extracted directory
cd listusb-X.Y
-
Create the initial package
dh_make
-
(Optional) Remove *.ex and *.EX files
rm *.ex *.EX
To have the package properly installed, it is necessary to have it
properly installed at /usr/bin.
Add the following lines to the newly created debian/rules
file
override_dh_auto_install:
install -D -m 0755 listusb $$(pwd)/debian/listusb/usr/local/bin/listusb
Note: The file follows the makefile sintax so it is required that the second line is idented with tabs and NOT spaces.
This is what actually creates the .deb
package
debuild -us -uc
Now you have an .deb
file that can be installed using dpkg
.
See the references to learn how to publish on an ubuntu PPA.
Check some references to learn more about building Debian packages