wok-next view lazarus/receipt @ rev 21382
updated nbd (3.3 -> 3.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 17:27:00 2020 +0100 (2020-04-16) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lazarus"
4 VERSION="2.0.6"
5 CATEGORY="development"
6 SHORT_DESC="Lazarus Component Library and IDE for Freepascal"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL LGPL"
9 WEB_SITE="https://www.lazarus-ide.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/lazarus/$TARBALL"
14 BUILD_DEPENDS="fpc fpc-src gtk2-dev"
16 compile_rules()
17 {
18 make -j1 clean bigide
19 #&& make INSTALL_PREFIX=/usr install
20 }
22 genpkg_rules()
23 {
24 cd $src # keep it
25 #strip lazarus
26 #strip startlazarus
27 #strip lazbuild
28 #strip tools/lazres
29 #strip tools/updatepofiles
30 #strip tools/lrstolfm
31 #strip tools/svn2revisioninc
33 install -m 755 -d $fs/usr/share
34 install -m 755 -d $fs/usr/share/lazarus
35 install -m 755 -d $fs/usr/share/applications
36 install -m 755 -d $fs/usr/share/pixmaps
37 install -m 755 -d $fs/usr/share/mime/packages
38 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
39 install -m 755 -d $fs/usr/bin
40 install -m 755 -d $fs/usr/share/man
41 install -m 755 -d $fs/usr/share/man/man1
43 cd $src
44 cp -Rfp packager $fs/usr/share/lazarus
45 cp -Rfp debugger $fs/usr/share/lazarus
46 cp -Rfp designer $fs/usr/share/lazarus
47 cp -Rfp converter $fs/usr/share/lazarus
48 cp -Rfp ide $fs/usr/share/lazarus
49 cp -Rfp images $fs/usr/share/lazarus
50 cp -Rfp languages $fs/usr/share/lazarus
51 cp -Rfp lazarus.app $fs/usr/share/lazarus
52 cp -Rfp units $fs/usr/share/lazarus
53 cp -Rfp components $fs/usr/share/lazarus
54 cp -Rfp docs $fs/usr/share/lazarus
55 cp -Rfp doceditor $fs/usr/share/lazarus
56 cp -Rfp examples $fs/usr/share/lazarus
57 cp -Rfp lcl $fs/usr/share/lazarus
58 cp -Rfp test $fs/usr/share/lazarus
59 cp -Rfp tools $fs/usr/share/lazarus
60 cp -Rfp Makefile* $fs/usr/share/lazarus
61 cp -Rfp *.txt $fs/usr/share/lazarus
63 install -c -m 755 lazarus $fs/usr/share/lazarus
64 install -c -m 755 startlazarus $fs/usr/share/lazarus
65 install -c -m 755 lazbuild $fs/usr/share/lazarus
67 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
68 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
69 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
70 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
71 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
72 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
74 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
76 cd $src/install/man/
78 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
79 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
80 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
81 cat man1/lazres.1 | gzip > man1/lazres.1.gz
82 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
83 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
84 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
86 install -m 644 man1/lrstolfm.1.gz $fs/usr/share/man/man1
87 install -m 644 man1/lazarus-ide.1.gz $fs/usr/share/man/man1
88 install -m 644 man1/lazres.1.gz $fs/usr/share/man/man1
89 install -m 644 man1/lazbuild.1.gz $fs/usr/share/man/man1
90 install -m 644 man1/startlazarus.1.gz $fs/usr/share/man/man1
91 install -m 644 man1/updatepofiles.1.gz $fs/usr/share/man/man1
92 install -m 644 man1/svn2revisioninc.1.gz $fs/usr/share/man/man1
94 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
96 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
97 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
98 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
99 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
101 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
102 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
103 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
104 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
105 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
107 #cp -a $install/* $fs
108 DEPENDS="fpc fpc-src gdb make"
109 TAGS="lazarus ide pascal"
110 }