Coder Social home page Coder Social logo

listusb-pkg's Introduction

listusb-pkg

Debian package for listusb

Install

To install, only the .deb file is required

Download the .deb installer

wget https://github.com/pauloserrafh/listusb-pkg/raw/master/listusb_1.0-1_amd64.deb

Install

dpkg -i listusb_1.0-1_amd64.deb

Run

listusb

Build

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.

Rename the source tarball

The file should be renamed to follow the pattern listusb_X.Y.orig.tar.gz Note:

  • X and Y are the version indicators
  • .origis required before the .tar.gz extension.
  • The separator from package name and version is lodash _

Extract the source tarball

Extract the source tarball in a folder with the patern listusb-X.Y Note:

  • The separator from package name and version is -
  • X and Y are the version indicators

Create initial package

  • Move to the extracted directory cd listusb-X.Y

  • Create the initial package dh_make

  • (Optional) Remove *.ex and *.EX files rm *.ex *.EX

Update debian/rules

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.

Run debuild

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.

References

Check some references to learn more about building Debian packages

listusb-pkg's People

Contributors

pauloserrafh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.