View Single Post
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#2
Quick guide to make .deb:
1) Create a folder, for example /home/user/mytheme_deb
2) Create a filesystem folder hieararchy under the previously created folder. In this case, create directory /home/user/mytheme_deb/usr/share/themes/red_alert and all its subdirectories.
3) Copy your files to previously created directories
4) Create a folder called "DEBIAN" in the folder created in 1)
5) Create file called "debian-binary" in the DEBIAN directory. Edit the file to have only text "2.0" in it (without the quotation marks obviously).
6) Add a file called "control" in the DEBIAN directory. Example of file "control":
Code:
Package: redalert_theme
Version: 1.0
Section: user/system
Priority: optional
Architecture: armel
Depends: example_dependency (>= 0.2.0), another_example
Installed-Size: 1024
Maintainer: King Kong <king.kong@jungle.com>
Source: none
Description: Red alert theme
 nice theme with red buttons and all...
 remember the whitespace in beginning of line when
 something goes on multiple lines.
7) Add scripts called "postinst" and "prerm" in the DEBIAN directory. "postinst" should have operations which need to be done after the files has been copied in the directories shown by your filesystem hierarchy and "prerm" should have operations which need to be done before uninstall removes the files. I guess that with themes you don't need to have anything in these, just add line "#!/bin/sh" to both of them.

At this point you should have folders:
- /home/user/mytheme_deb/DEBIAN with files prerm, postinst, control and debian-binary
- /home/user/myhteme_deb/usr/share/themes/red_alert with your theme files and subdirectories

8) Run "dpkg -b /home/user/mytheme_deb mytheme_1.0_armel.deb" to make the deb. Debs should be named like package_version_architecture.deb.

I hope I remembered all.

Last edited by TNiga; 2010-01-09 at 12:49.
 

The Following 4 Users Say Thank You to TNiga For This Useful Post: