From 277a98b2c8c61c6825591f804aebcc3c9bc6bbef Mon Sep 17 00:00:00 2001 From: Simon John Date: Sun, 5 Jan 2014 00:45:02 +0000 Subject: [PATCH 1/2] Debian package rebuild instructions. Shows a user how to make their own Debian packages from Git. Also has instructions for getting official upstream builds for their distro. --- packaging/debian/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packaging/debian/README.md diff --git a/packaging/debian/README.md b/packaging/debian/README.md new file mode 100644 index 0000000..2e1fc79 --- /dev/null +++ b/packaging/debian/README.md @@ -0,0 +1,23 @@ +# How to compile a Deb package + +Use these instructions to build your own Deb package from your local sources. +For the latest official packages go to [Debian](http://packages.debian.org/arduino-mk) +or [Ubuntu](https://launchpad.net/ubuntu/+source/arduino-mk) or use apt. + +First install the dependencies as root: + + apt-get build-dep arduino-mk + apt-get install arduino-core libdevice-serialport-perl help2man build-essential dpkg-dev + +Fetch the Debian source: + + apt-get source arduino-mk + +Make any local changes to want within arduino-mk-* directory and update the package version: + + cd arduino-mk-* + dch -i + +Then compile. This will create a binary Deb: + + dpkg-buildpackage -b From cec6553cf9f6de328b94f992df8165f3564a09fa Mon Sep 17 00:00:00 2001 From: Simon John Date: Sun, 5 Jan 2014 01:19:23 +0000 Subject: [PATCH 2/2] Added some more build dependencies to ensure everything needed to build is installed. --- packaging/debian/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/debian/README.md b/packaging/debian/README.md index 2e1fc79..26efa5a 100644 --- a/packaging/debian/README.md +++ b/packaging/debian/README.md @@ -4,16 +4,16 @@ Use these instructions to build your own Deb package from your local sources. For the latest official packages go to [Debian](http://packages.debian.org/arduino-mk) or [Ubuntu](https://launchpad.net/ubuntu/+source/arduino-mk) or use apt. -First install the dependencies as root: +First install the dependencies for building/running the package, as root: apt-get build-dep arduino-mk - apt-get install arduino-core libdevice-serialport-perl help2man build-essential dpkg-dev + apt-get install arduino-core libdevice-serialport-perl help2man build-essential dpkg-dev fakeroot perl-doc devscripts Fetch the Debian source: apt-get source arduino-mk -Make any local changes to want within arduino-mk-* directory and update the package version: +Make any local changes to want within the arduino-mk-* directory and update the package version: cd arduino-mk-* dch -i