File: PACKAGING

package info (click to toggle)
zim 0.25-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,404 kB
  • ctags: 774
  • sloc: perl: 16,381; python: 99; sh: 91; makefile: 47; xml: 8
file content (41 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
===== Packaging =====

Some tips for packagers:

=== Compiling ===

Since perl is written in perl completely there is little to compile. The build
action mainly figures out which files to install.

However some config files and translations are "compiled" when building.

=== Installing ===

When creating a binary package you typically you need to install to a directory
that is zipped into the package. You can use:

	./Build install --install_base /my/path

to install to a package directory. Have a look at the Module::Build
documentation for more advanced stuff.

=== Post actions ===

If you use the freedesktop.org mime and application databases you need to run
update actions after installing zim. When you run install from the source
build these actions are run automatically, but I guess you will need to include
them in a package as a post action:

To make sure zim is listed in the applications menu run:

	update-desktop-database

To make sure the mimetype for zim notebooks is installed run:

	update-mime-database /usr/share/mime

And to ensure the mimetype has an icon run:

	xdg-icon-resource install --context mimetypes --size 64 \
	./share/pixmaps/zim.png text-x-zim-notebook