mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 21:39:39 +02:00
added instructions to create lazarus debian package
git-svn-id: trunk@3853 -
This commit is contained in:
parent
9cb475e7a4
commit
a716696caa
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -815,6 +815,7 @@ tools/install/create_fpc_rpm.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_fpc_snapshot_tgz.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_fpcsrc-1.1_rpm.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_fpcsrc_deb.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_lazarus_deb.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_lazarus_snapshot_tgz.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_lazarus_tgz_from_local_dir.sh -text svneol=native#application/x-sh
|
||||
tools/lazarusmake.ini svneol=native#text/plain
|
||||
|
@ -85,12 +85,18 @@ Creating the debian fpcsrc package:
|
||||
Create the fpcsrc-1.0.7.tgz of 'Creating the fpcsrc tgz' and put it into
|
||||
tools/install. If you have no permissions for that, just copy the directory
|
||||
somwhere (e.g. cp -R <lazarusdir>/tools/install /tmp/fpcsrc).
|
||||
The cd into the tools/install directory and executed the script
|
||||
create_fpcsrc_deb.sh. It will create /tmp/fpcsrc_temp/ and and will build the
|
||||
Then cd into the tools/install directory and execute the script
|
||||
create_fpcsrc_deb.sh. It will create /tmp/fpcsrc_temp/ and will build the
|
||||
deb there.
|
||||
|
||||
|
||||
Creating the debian lazarus package:
|
||||
|
||||
ToDo ...
|
||||
You need the X11 package:
|
||||
Create the lazarus-0.8.5.tgz of 'Creating the lazarus tgz' and put it into
|
||||
tools/install. If you have no permissions for that, just copy the directory
|
||||
somwhere (e.g. cp -R <lazarusdir>/tools/install /tmp/lazarus).
|
||||
Then cd into the tools/install directory and execute the script
|
||||
create_lazarus_deb.sh. It will create /tmp/lazarus_temp/ and will build the
|
||||
deb there.
|
||||
|
||||
|
@ -39,7 +39,7 @@ gzip --best $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog.Debian
|
||||
|
||||
# fixing permissions
|
||||
echo "fixing permissions ..."
|
||||
find ./debian -type d | xargs chmod 755 # this is necessary on Debian Woody, don't ask me why
|
||||
find $FPCSrcBuildDir -type d | xargs chmod 755 # this is necessary on Debian Woody, don't ask me why
|
||||
|
||||
# creating deb
|
||||
echo "creating deb ..."
|
||||
|
67
tools/install/create_lazarus_deb.sh
Normal file
67
tools/install/create_lazarus_deb.sh
Normal file
@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
#set -x
|
||||
set -e
|
||||
|
||||
CurDir=`pwd`
|
||||
TempDir=/tmp/lazarus_temp
|
||||
LazBuildDir=$TempDir/lazarus_build
|
||||
LazTGZ=$CurDir/lazarus-0.8.5.tgz
|
||||
LazDeb=lazarus-0.8.5-1.deb
|
||||
DebianSrcDir=$CurDir/debian_lazarus
|
||||
LazDestDir=$LazBuildDir/usr/share/lazarus
|
||||
|
||||
echo "Build directory is $LazBuildDir"
|
||||
if [ x$LazBuildDir = x/ ]; then
|
||||
echo "ERROR: invalid build directory"
|
||||
exit
|
||||
fi
|
||||
rm -rf $LazBuildDir
|
||||
|
||||
# Unpack lazarus source
|
||||
echo "unpacking $LazTGZ ..."
|
||||
mkdir -p $LazBuildDir/usr/share/
|
||||
cd $LazBuildDir/usr/share/
|
||||
tar xzf $LazTGZ
|
||||
find . -name '.cvsignore' -exec rm {} \;
|
||||
cd -
|
||||
|
||||
# compile
|
||||
cd $LazDestDir
|
||||
make
|
||||
strip lazarus
|
||||
cd -
|
||||
|
||||
# create control file
|
||||
echo "copying control file"
|
||||
mkdir -p $LazBuildDir/DEBIAN
|
||||
cp $DebianSrcDir/control $LazBuildDir/DEBIAN/
|
||||
|
||||
# copyright and changelog files
|
||||
echo "copying copyright and changelog files"
|
||||
mkdir -p $LazBuildDir/usr/share/doc/lazarus
|
||||
cp $DebianSrcDir/{copyright,changelog,changelog.Debian} $LazBuildDir/usr/share/doc/lazarus/
|
||||
gzip --best $LazBuildDir/usr/share/doc/lazarus/changelog
|
||||
gzip --best $LazBuildDir/usr/share/doc/lazarus/changelog.Debian
|
||||
|
||||
# icons, links
|
||||
mkdir -p $LazBuildDir/usr/share/pixmaps/
|
||||
mkdir -p $LazBuildDir/usr/share/gnome/apps/Development/
|
||||
mkdir -p $LazBuildDir/usr/bin/
|
||||
install -m 644 $LazDestDir/images/ide_icon48x48.png $LazBuildDir/usr/share/pixmaps/lazarus.png
|
||||
install -m 644 $LazDestDir/gnome.ide.desktop $LazBuildDir/usr/share/gnome/apps/Development/lazarus.desktop
|
||||
ln -s $LazDestDir/lazarus $LazBuildDir/usr/bin/lazarus
|
||||
|
||||
# fixing permissions
|
||||
echo "fixing permissions ..."
|
||||
find $LazBuildDir -type d | xargs chmod 755 # this is necessary on Debian Woody, don't ask me why
|
||||
find $LazBuildDir -name '*.sh' -exec chmod a+x {} \;
|
||||
|
||||
# creating deb
|
||||
echo "creating deb ..."
|
||||
cd $TempDir
|
||||
fakeroot dpkg-deb --build $LazBuildDir
|
||||
mv $LazBuildDir.deb $LazDeb
|
||||
echo "`pwd`/$LazDeb created."
|
||||
cd -
|
||||
|
||||
# end.
|
7
tools/install/debian_lazarus/changelog
Normal file
7
tools/install/debian_lazarus/changelog
Normal file
@ -0,0 +1,7 @@
|
||||
lazarus (0.8.5-1)
|
||||
|
||||
* Started package
|
||||
|
||||
-- Mattias Gaertner <mattias@cvs.freepascal.org> 2003-02-18
|
||||
|
||||
|
3
tools/install/debian_lazarus/changelog.Debian
Normal file
3
tools/install/debian_lazarus/changelog.Debian
Normal file
@ -0,0 +1,3 @@
|
||||
lazarus Debian maintainer and upstream author are identical.
|
||||
Therefore see also normal changelog file for Debian changes.
|
||||
|
16
tools/install/debian_lazarus/control
Normal file
16
tools/install/debian_lazarus/control
Normal file
@ -0,0 +1,16 @@
|
||||
Package: lazarus
|
||||
Version: 0.8.5-1
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: Mattias Gaertner <mattias@cvs.freepascal.org>
|
||||
Architecture: i386
|
||||
Depends: fp-compiler (>=1.0.7), fp-docs (>=1.0.7),
|
||||
fp-units-base (>=1.0.7), fp-units-db (>=1.0.7),
|
||||
fp-units-fcl (>=1.0.7), fp-units-gfx (>=1.0.7),
|
||||
fp-units-gtk (>=1.0.7), fp-units-misc (>=1.0.7),
|
||||
fp-units-net (>=1.0.7), fp-units-rtl (>=1.0.7),
|
||||
fp-utils (>=1.0.7), fpcsrc (>=1.0.7)
|
||||
Description: RAD tool for freepascal
|
||||
Lazarus is a free RAD tool for freepascal using the lazarus
|
||||
component library LCL.
|
||||
|
9
tools/install/debian_lazarus/copyright
Normal file
9
tools/install/debian_lazarus/copyright
Normal file
@ -0,0 +1,9 @@
|
||||
The package was originally put together by:
|
||||
Mattias Gaertner <mattias@freepascal.org>
|
||||
|
||||
From sources obtained from:
|
||||
ftp://lazarus.freepascal.org/lazarus/
|
||||
|
||||
The files and libraries are released under the terms of the GNU
|
||||
Library General Public License, which can be found in the file
|
||||
/usr/share/common-licenses/LGPL-2 on a Debian system.
|
Loading…
Reference in New Issue
Block a user