wok-6.x annotate 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
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"
pascal@21278 9 WEB_SITE="https://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
pascal@24411 17 # What is the latest version available today?
pascal@24411 18 current_version()
pascal@24411 19 {
pascal@24411 20 wget -O - 'https://sourceforge.net/projects/lazarus/files/Lazarus Linux SRC RPM/' 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;s|.*/Lazarus%20||;s|/.*||;q'
pascal@24411 23 }
pascal@24411 24
al@18990 25 # Rules to configure and make the package.
al@18990 26 compile_rules()
al@18990 27 {
pascal@20625 28 find * -name Makefile | xargs sed -i 's|findstring x86_64|&SKIP|'
al@18992 29 make -j 1 clean bigide
al@18990 30 #&& make INSTALL_PREFIX=/usr install
al@18990 31
al@18990 32 }
al@18990 33
al@18990 34 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18990 35 genpkg_rules()
al@18990 36 {
al@18990 37 cd $src
al@18990 38 #strip lazarus
al@18990 39 #strip startlazarus
al@18990 40 #strip lazbuild
al@18990 41 #strip tools/lazres
al@18990 42 #strip tools/updatepofiles
al@18990 43 #strip tools/lrstolfm
al@18990 44 #strip tools/svn2revisioninc
al@18990 45
al@18990 46 install -m 755 -d $fs/usr/share
al@18990 47 install -m 755 -d $fs/usr/share/lazarus
al@18990 48 install -m 755 -d $fs/usr/share/applications
al@18990 49 install -m 755 -d $fs/usr/share/pixmaps
al@18990 50 install -m 755 -d $fs/usr/share/mime/packages
al@18990 51 install -m 755 -d $fs/usr/share/icons/hicolor/48x48/mimetypes
al@18990 52 install -m 755 -d $fs/usr/bin
al@18990 53 install -m 755 -d $fs/usr/share/man
al@18990 54 install -m 755 -d $fs/usr/share/man/man1
al@18990 55
al@18990 56 cd $src
al@18990 57 cp -Rfp packager debugger designer converter ide images languages lazarus.app units $fs/usr/share/lazarus
al@18990 58 cp -Rfp components docs doceditor examples lcl test tools $fs/usr/share/lazarus
al@18990 59 cp -Rfp Makefile* *.txt $fs/usr/share/lazarus
al@18990 60
al@18990 61 install -c -m 755 lazarus startlazarus lazbuild $fs/usr/share/lazarus
al@18990 62
al@18990 63 ln -sf ../share/lazarus/lazarus $fs/usr/bin/lazarus-ide
al@18990 64 ln -sf ../share/lazarus/startlazarus $fs/usr/bin/startlazarus
al@18990 65 ln -sf ../share/lazarus/lazbuild $fs/usr/bin/lazbuild
al@18990 66 ln -sf ../share/lazarus/tools/lazres $fs/usr/bin/lazres
al@18990 67 ln -sf ../share/lazarus/tools/lrstolfm $fs/usr/bin/lrstolfm
al@18990 68 ln -sf ../share/lazarus/tools/updatepofiles $fs/usr/bin/updatepofiles
al@18990 69
al@18990 70 make -C $src/install/man install PREFIX=/usr GINSTALL=/usr/bin/install
al@18990 71
al@18990 72 cd $src/install/man/
al@18990 73
al@18990 74 cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
al@18990 75 cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
al@18990 76 cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
al@18990 77 cat man1/lazres.1 | gzip > man1/lazres.1.gz
al@18990 78 cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
al@18990 79 cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
al@18990 80 cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
al@18990 81
al@18990 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
al@18990 83
al@18990 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
al@18990 85
al@18990 86
al@18990 87 install -c -m 644 $src/install/lazarus.desktop $fs/usr/share/applications/lazarus.desktop
al@18990 88 install -c -m 644 $src/images/icons/lazarus128x128.png $fs/usr/share/pixmaps/lazarus.png
al@18990 89 install -c -m 644 $src/install/lazarus-mime.xml $fs/usr/share/mime/packages/lazarus.xml
al@18990 90 install -c -m 644 $src/images/mimetypes/*.png $fs/usr/share/icons/hicolor/48x48/mimetypes/
al@18990 91
al@18990 92 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/nogui
al@18990 93 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk
al@18990 94 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/gtk2
al@18990 95 install -m 755 -d $fs/usr/share/lazarus/units/i386-linux/qt
al@18990 96 install -m 755 -d $fs/usr/share/lazarus/components/synedit/design/languages
al@18990 97
al@18990 98 #cp -a $install/* $fs
al@18990 99 }