Custom package example: Difference between revisions
From LFScript
No edit summary |
|||
Line 1: | Line 1: | ||
'''This page is a rough draft, do not rely on it''' | '''This page is a rough draft, do not rely on it''' | ||
<scriptname>my-software</scriptname> | <scriptname>my-software</scriptname> | ||
Line 24: | Line 16: | ||
== Pre-installation == | == Pre-installation == | ||
<preinst>useradd -m sampleUser</preinst> | <preinst>useradd -m sampleUser</preinst> | ||
== Installation == | == Installation == | ||
<compile>patch -Np1 < ../sourcecode-1.0_fix.patch</compile> | <compile>patch -Np1 < ../sourcecode-1.0_fix.patch</compile> | ||
<compile>./configure --prefix=/usr && | <compile>./configure --prefix=/usr && | ||
make</compile> | make</compile> | ||
<install>make install</install> | <install>make install</install> | ||
== Packaging note == | == Packaging note == | ||
Line 49: | Line 30: | ||
== Post-installation == | == Post-installation == | ||
<delaypostinst/><postinst>update-desktop-database</postinst> | |||
<delaypostinst/> | |||
<postinst>update-desktop-database</postinst> | |||
Revision as of 14:09, 1 February 2012
This page is a rough draft, do not rely on it
LFScript can find this software under the name my-software
.
Sources
- http://www.example.com/sourcecode-1.0.tar.xz
- http://www.example.com/alt/sourcecode-1.0.tar.xz
- http://www.example.com/patch/sourcecode-1.0_fix.patch
MD5 Checksums:
9244091002a9d52e91fca0b1f3818ab9 sourcecode-1.0.tar.xz d41d8cd98f00b204e9800998ecf8427e sourcecode-1.0_fix.patch
Dependencies
- NetworkManager
- libpng
Pre-installation
useradd -m sampleUser
Installation
<compile>patch -Np1 < ../sourcecode-1.0_fix.patch</compile>
<compile>./configure --prefix=/usr && make</compile>
<install>make install</install>
Packaging note
The source code of this package does not support the standard use of DESTDIR. In stead it uses
prefix=
Post-installation
Note: Post-installation of this software should be performed after all other software has been installed.
update-desktop-database