wok-current view lazarus/receipt @ rev 19119
vlc (hack build for time being)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun May 08 09:53:06 2016 +0100 (2016-05-08) |
parents | befdc87b2ace |
children | d8337abf6290 |
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 make -j 1 clean bigide
21 #&& make INSTALL_PREFIX=/usr install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cd $src
29 #strip lazarus
30 #strip startlazarus
31 #strip lazbuild
32 #strip tools/lazres
33 #strip tools/updatepofiles
34 #strip tools/lrstolfm
35 #strip tools/svn2revisioninc
37 install -m 755 -d $fs/usr/share
38 install -m 755 -d $fs/usr/share/lazarus
39 install -m 755 -d $fs/usr/share/applications
40 install -m 755 -d $fs/usr/share/pixmaps
41 install -m 755 -d $fs/usr/share/mime/packages
42 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
43 install -m 755 -d $fs/usr/bin
44 install -m 755 -d $fs/usr/share/man
45 install -m 755 -d $fs/usr/share/man/man1
47 cd $src
48 cp -Rfp packager debugger designer converter ide images languages lazarus.app units $fs/usr/share/lazarus
49 cp -Rfp components docs doceditor examples lcl test tools $fs/usr/share/lazarus
50 cp -Rfp Makefile* *.txt $fs/usr/share/lazarus
52 install -c -m 755 lazarus startlazarus lazbuild $fs/usr/share/lazarus
54 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
55 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
56 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
57 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
58 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
59 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
61 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
63 cd $src/install/man/
65 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
66 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
67 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
68 cat man1/lazres.1 | gzip > man1/lazres.1.gz
69 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
70 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
71 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
73 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
75 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
78 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
79 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
80 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
81 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
83 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
84 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
85 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
86 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
87 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
89 #cp -a $install/* $fs
90 }