How to create a .deb file with dependency?
I have a game made with the LÖVE framework and I want to package it into a .deb
file so it can be easily installed by others and be easily findable through the Unity dash for example.
I also have the LÖVE framework love_0.7.2.deb
which I want to be in the deb file also somehow.
Files that I have:
game_icon.png
game .desktop
the_game.love
love_0.7.2.deb
Could someone explain to me how to do this?
Solution 1:
In order to make one package depend on another, you need to specify the relationship in the debian/control
file. You can read about the syntax of this file in the Ubuntu Packaging Guide. The rest of that guide will probably be helpful in giving you an overview of packaging programs for Ubuntu.
Briefly though, your debian/control
file might look something like:
Source: my-game
Section: devel
Priority: optional
Maintainer: Jane Doe <[email protected]>
Standards-Version: 3.9.3
Build-Depends: debhelper (>= 7)
Homepage: http://www.gnu.org/software/hello/
Package: my-game
Architecture: any
Depends: ${shlibs:Depends}, love (>= 0.7.2)
Description: a game made with the LÖVE framework
This game is really amazing.
.
It has many features.
Especially note the line:
Depends: ${shlibs:Depends}, love (>= 0.7.2)