wok view lazarus/receipt @ rev 21127

gejengel: imagemagick 7 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 20 21:23:37 2019 +0100 (2019-03-20)
parents f279f23b1966
children ccb0caebef6f
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="http://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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 find * -name Makefile | xargs sed -i 's|findstring x86_64|&SKIP|'
21 make -j 1 clean bigide
22 #&& make INSTALL_PREFIX=/usr install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cd $src
30 #strip lazarus
31 #strip startlazarus
32 #strip lazbuild
33 #strip tools/lazres
34 #strip tools/updatepofiles
35 #strip tools/lrstolfm
36 #strip tools/svn2revisioninc
38 install -m 755 -d $fs/usr/share
39 install -m 755 -d $fs/usr/share/lazarus
40 install -m 755 -d $fs/usr/share/applications
41 install -m 755 -d $fs/usr/share/pixmaps
42 install -m 755 -d $fs/usr/share/mime/packages
43 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
44 install -m 755 -d $fs/usr/bin
45 install -m 755 -d $fs/usr/share/man
46 install -m 755 -d $fs/usr/share/man/man1
48 cd $src
49 cp -Rfp packager debugger designer converter ide images languages lazarus.app units $fs/usr/share/lazarus
50 cp -Rfp components docs doceditor examples lcl test tools $fs/usr/share/lazarus
51 cp -Rfp Makefile* *.txt $fs/usr/share/lazarus
53 install -c -m 755 lazarus startlazarus lazbuild $fs/usr/share/lazarus
55 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
56 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
57 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
58 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
59 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
60 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
62 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
64 cd $src/install/man/
66 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
67 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
68 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
69 cat man1/lazres.1 | gzip > man1/lazres.1.gz
70 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
71 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
72 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
74 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
76 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
79 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
80 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
81 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
82 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
84 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
85 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
86 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
87 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
88 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
90 #cp -a $install/* $fs
91 }