User Tools

Site Tools


how_to_build_a_debian_package

This is an old revision of the document!


How To Build a Debian Package

This tutorial is based on http://linuxconfig.org/easy-way-to-create-a-debian-package-and-local-package-repository.

In this tutorial, all examples are related to the building of the owncloud-client package like described in Building owncloud client for Raspberry pi's raspbian. I assume files needed in the package are already copied in the deb/owncloud folder.

First, create DEBIAN folder:

cd /home/pi/dev/owncloud-client/deb/owncloud-client
mkdir DEBIAN

Then, create a control file for he package:

vim DEBIAN/control

The content:

control
Package: owncloud-client
Version: 2.1.0+debian+rpi1
Homepage: https://wiki.sgripon.net/doku.php?id=building_owncloud_client_for_raspberry_pi
Depends: libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libqt4-network (>= 4:4.7.0~beta1), libqt4-test (>= 4:4.5.3), libqt4-xml (>= 4:4.5.3), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.7.0~beta1), libqtkeychain0 (>= 0.1.0), libstdc++6 (>= 4.4.0), libqtwebkit4, libqt4-xmlpatterns
Priority: optional
Section: net
Architecture: armhf
Essential: no
Installed-Size: 1024
Maintainer: Sebastien Gripon <oc-rpi-deb@sgripon.net>
Description: GUI app to sync a folder to ownCloud
 Specify one ore more directories on the local machine to sync your ownCloud
 server, and always have your latest files wherever you are. Make a change to
 the files on one computer, it will flow across the others using these desktop
 sync clients.
how_to_build_a_debian_package.1452335713.txt.gz · Last modified: 2016/01/09 11:35 by sgripon