| 1 | For this example we'll rebuild the GDAL Precise package. |
| 2 | |
| 3 | 1. Let's download the files we need from [https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+packages?field.name_filter=gdal&field.status_filter=published&field.series_filter=precise Launchpad]. |
| 4 | We need to download the {{{.orig.tar.gz}}}, {{{.debian.tar.gz}}} and {{{.dsc}}}. |
| 5 | |
| 6 | {{{ |
| 7 | $ cd ~/vm/ubuntugis/packages |
| 8 | $ mkdir gdal |
| 9 | $ cd gdal |
| 10 | $ wget https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+files/gdal_1.10.0.orig.tar.gz |
| 11 | $ wget https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+files/gdal_1.10.0-1~precise1.debian.tar.gz |
| 12 | $ wget https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+files/gdal_1.10.0-1~precise1.dsc |
| 13 | }}} |
| 14 | |
| 15 | 2. With these files downloaded, we simply need to extract the {{{.dsc}}} |
| 16 | |
| 17 | {{{ |
| 18 | $ dpkg-source -x gdal_1.10.0-1~precise1.dsc gdal |
| 19 | }}} |
| 20 | |
| 21 | 3. Then you can {{{cd}}} into the folder and update the changelog for a rebuild or make change to the package if you want. |
| 22 | |
| 23 | {{{ |
| 24 | dch -p -D precise -l precise "Launchpad rebuild for Precise" |
| 25 | }}} |
| 26 | You can then open {{{debian/changelog}}} and add entries if you have made other changes to the package. |