wok-next view lazarus/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 0eb66a27e947 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lazarus"
4 VERSION="1.6.0-0"
5 CATEGORY="development"
6 SHORT_DESC="Lazarus Component Library and IDE for Freepascal"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL LGPL"
9 WEB_SITE="http://www.lazarus-ide.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/lazarus/$TARBALL"
14 BUILD_DEPENDS="gtk2-dev fpc fpc-src"
16 compile_rules() {
17 make -j1 clean bigide
18 #&& make INSTALL_PREFIX=/usr install
19 }
21 genpkg_rules() {
22 cd $src # keep it
23 #strip lazarus
24 #strip startlazarus
25 #strip lazbuild
26 #strip tools/lazres
27 #strip tools/updatepofiles
28 #strip tools/lrstolfm
29 #strip tools/svn2revisioninc
31 install -m 755 -d $fs/usr/share
32 install -m 755 -d $fs/usr/share/lazarus
33 install -m 755 -d $fs/usr/share/applications
34 install -m 755 -d $fs/usr/share/pixmaps
35 install -m 755 -d $fs/usr/share/mime/packages
36 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
37 install -m 755 -d $fs/usr/bin
38 install -m 755 -d $fs/usr/share/man
39 install -m 755 -d $fs/usr/share/man/man1
41 cd $src
42 cp -Rfp packager debugger designer converter ide images languages lazarus.app units $fs/usr/share/lazarus
43 cp -Rfp components docs doceditor examples lcl test tools $fs/usr/share/lazarus
44 cp -Rfp Makefile* *.txt $fs/usr/share/lazarus
46 install -c -m 755 lazarus startlazarus lazbuild $fs/usr/share/lazarus
48 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
49 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
50 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
51 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
52 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
53 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
55 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
57 cd $src/install/man/
59 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
60 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
61 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
62 cat man1/lazres.1 | gzip > man1/lazres.1.gz
63 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
64 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
65 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
67 install -m 644 man1/lrstolfm.1.gz man1/lazarus-ide.1.gz man1/lazres.1.gz man1/lazbuild.1.gz man1/startlazarus.1.gz man1/updatepofiles.1.gz man1/svn2revisioninc.1.gz $fs/usr/share/man/man1
69 rm -f man1/lrstolfm.1.gz man1/lazarus-ide.1.gz man1/lazres.1.gz man1/lazbuild.1.gz man1/startlazarus.1.gz man1/updatepofiles.1.gz man1/svn2revisioninc.1.gz
71 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
72 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
73 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
74 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
76 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
77 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
78 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
79 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
80 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
82 #cp -a $install/* $fs
83 DEPENDS="fpc fpc-src gdb make"
84 TAGS="lazarus ide pascal"
85 }