wok-6.x view lazarus/receipt @ rev 24953
updated nagvis and nagvis-doc (1.9.18 -> 1.9.31)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 15:05:31 2022 +0100 (2022-04-23) |
parents | ccb0caebef6f |
children |
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="shevtsov.anton@gmail.com"
8 LICENSE="GPL LGPL"
9 WEB_SITE="https://www.lazarus-ide.org"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/lazarus/$TARBALL"
12 TAGS="lazarus ide pascal"
14 DEPENDS="fpc fpc-src gdb make"
15 BUILD_DEPENDS="gtk+-dev fpc fpc-src"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - 'https://sourceforge.net/projects/lazarus/files/Lazarus Linux SRC RPM/' 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/Lazarus%20||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 find * -name Makefile | xargs sed -i 's|findstring x86_64|&SKIP|'
29 make -j 1 clean bigide
30 #&& make INSTALL_PREFIX=/usr install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cd $src
38 #strip lazarus
39 #strip startlazarus
40 #strip lazbuild
41 #strip tools/lazres
42 #strip tools/updatepofiles
43 #strip tools/lrstolfm
44 #strip tools/svn2revisioninc
46 install -m 755 -d $fs/usr/share
47 install -m 755 -d $fs/usr/share/lazarus
48 install -m 755 -d $fs/usr/share/applications
49 install -m 755 -d $fs/usr/share/pixmaps
50 install -m 755 -d $fs/usr/share/mime/packages
51 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
52 install -m 755 -d $fs/usr/bin
53 install -m 755 -d $fs/usr/share/man
54 install -m 755 -d $fs/usr/share/man/man1
56 cd $src
57 cp -Rfp packager debugger designer converter ide images languages lazarus.app units $fs/usr/share/lazarus
58 cp -Rfp components docs doceditor examples lcl test tools $fs/usr/share/lazarus
59 cp -Rfp Makefile* *.txt $fs/usr/share/lazarus
61 install -c -m 755 lazarus startlazarus lazbuild $fs/usr/share/lazarus
63 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
64 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
65 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
66 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
67 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
68 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
70 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
72 cd $src/install/man/
74 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
75 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
76 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
77 cat man1/lazres.1 | gzip > man1/lazres.1.gz
78 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
79 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
80 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
82 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
84 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
87 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
88 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
89 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
90 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
92 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
93 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
94 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
95 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
96 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
98 #cp -a $install/* $fs
99 }