wok-next annotate lazarus/receipt @ rev 19685

Up backup-manager (0.7.13)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 10 09:24:49 2017 +0200 (2017-04-10)
parents befdc87b2ace
children f48456621a9d
rev   line source
al@18990 1 # SliTaz package receipt.
al@18990 2
al@18990 3 PACKAGE="lazarus"
al@18990 4 VERSION="1.6.0-0"
al@18990 5 CATEGORY="development"
al@18990 6 SHORT_DESC="Lazarus Component Library and IDE for Freepascal"
al@18990 7 MAINTAINER="shevtsov.anton@gmail.com"
al@18990 8 LICENSE="GPL LGPL"
al@18990 9 WEB_SITE="http://www.lazarus-ide.org"
al@18990 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@18992 11 WGET_URL="$SF_MIRROR/lazarus/$TARBALL"
al@18990 12 TAGS="lazarus ide pascal"
al@18990 13
al@18990 14 DEPENDS="fpc fpc-src gdb make"
al@18992 15 BUILD_DEPENDS="gtk+-dev fpc fpc-src"
al@18990 16
al@18990 17 # Rules to configure and make the package.
al@18990 18 compile_rules()
al@18990 19 {
al@18992 20 make -j 1 clean bigide
al@18990 21 #&& make INSTALL_PREFIX=/usr install
al@18990 22
al@18990 23 }
al@18990 24
al@18990 25 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18990 26 genpkg_rules()
al@18990 27 {
al@18990 28 cd $src
al@18990 29 #strip lazarus
al@18990 30 #strip startlazarus
al@18990 31 #strip lazbuild
al@18990 32 #strip tools/lazres
al@18990 33 #strip tools/updatepofiles
al@18990 34 #strip tools/lrstolfm
al@18990 35 #strip tools/svn2revisioninc
al@18990 36
al@18990 37 install -m 755 -d $fs/usr/share
al@18990 38 install -m 755 -d $fs/usr/share/lazarus
al@18990 39 install -m 755 -d $fs/usr/share/applications
al@18990 40 install -m 755 -d $fs/usr/share/pixmaps
al@18990 41 install -m 755 -d $fs/usr/share/mime/packages
al@18990 42 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
al@18990 43 install -m 755 -d $fs/usr/bin
al@18990 44 install -m 755 -d $fs/usr/share/man
al@18990 45 install -m 755 -d $fs/usr/share/man/man1
al@18990 46
al@18990 47 cd $src
al@18990 48 cp -Rfp packager debugger designer converter ide images languages lazarus.app units $fs/usr/share/lazarus
al@18990 49 cp -Rfp components docs doceditor examples lcl test tools $fs/usr/share/lazarus
al@18990 50 cp -Rfp Makefile* *.txt $fs/usr/share/lazarus
al@18990 51
al@18990 52 install -c -m 755 lazarus startlazarus lazbuild $fs/usr/share/lazarus
al@18990 53
al@18990 54 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
al@18990 55 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
al@18990 56 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
al@18990 57 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
al@18990 58 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
al@18990 59 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
al@18990 60
al@18990 61 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
al@18990 62
al@18990 63 cd $src/install/man/
al@18990 64
al@18990 65 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
al@18990 66 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
al@18990 67 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
al@18990 68 cat man1/lazres.1 | gzip > man1/lazres.1.gz
al@18990 69 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
al@18990 70 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
al@18990 71 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
al@18990 72
al@18990 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
al@18990 74
al@18990 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
al@18990 76
al@18990 77
al@18990 78 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
al@18990 79 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
al@18990 80 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
al@18990 81 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
al@18990 82
al@18990 83 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
al@18990 84 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
al@18990 85 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
al@18990 86 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
al@18990 87 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
al@18990 88
al@18990 89 #cp -a $install/* $fs
al@18990 90 }