wok annotate scite/receipt @ rev 25097

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 18 20:27:19 2022 +0000 (24 months ago)
parents 84f57aa7cd18
children 29df00e1e19d
rev   line source
pascal@2177 1 # SliTaz package receipt.
pascal@2177 2
pascal@2177 3 PACKAGE="scite"
Hans-G?nter@23633 4 VERSION="4.3.2"
pascal@2177 5 CATEGORY="utilities"
Hans-G?nter@21889 6 TAGS="text-editor"
pankso@4830 7 SHORT_DESC="Editor with syntax highlighting and source code editing features."
pankso@2183 8 MAINTAINER="rcx@zoominternet.net"
pascal@15593 9 LICENSE="PSL"
Hans-G?nter@21889 10 WEB_SITE="https://www.scintilla.org/"
Hans-G?nter@21889 11
slaxemulator@11318 12 TARBALL="${PACKAGE}${VERSION//./}.tgz"
pascal@2177 13 WGET_URL="$SF_MIRROR/scintilla/$TARBALL"
pascal@2177 14
Hans-G?nter@21889 15 DEPENDS="gcc83-lib-base gtk+ xorg-libXdamage"
Hans-G?nter@21889 16 BUILD_DEPENDS="gcc83 gtk+-dev"
slaxemulator@10971 17
pascal@24348 18 # What is the latest version available today?
pascal@24348 19 current_version()
pascal@24348 20 {
pascal@24348 21 wget -O - https://sourceforge.net/projects/scintilla/files/SciTE/ 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 23 sed '/scope="row/!d;s|.*/SciTE/||;s|/.*||;q'
pascal@24348 24 }
pascal@24348 25
pascal@2177 26 # Rules to configure and make the package.
pascal@2177 27 compile_rules()
pascal@2177 28 {
Hans-G?nter@21889 29 export CC=gcc-83
Hans-G?nter@21889 30 export CXX=g++-83
Hans-G?nter@21889 31
pascal@2177 32 # Build scintilla
slaxemulator@8428 33 cd $src/scintilla/gtk
pascal@2177 34 make GTK2=1 prefix=/usr
pascal@2177 35
pascal@2177 36 # Build SciTE
slaxemulator@8428 37 cd $src/scite/gtk
pascal@5007 38 make GTK2=1 prefix=/usr &&
Hans-G?nter@21889 39 make prefix=/usr install &&
Hans-G?nter@21889 40 {
Hans-G?nter@21889 41 # Desktop file and icon
Hans-G?nter@21889 42 mkdir -p $DESTDIR/usr/share/applications
Hans-G?nter@21889 43 mkdir -p $DESTDIR/usr/share/pixmaps
Hans-G?nter@21889 44 cp SciTE.desktop $DESTDIR/usr/share/applications
Hans-G?nter@21889 45 cp Sci48M.png $DESTDIR/usr/share/pixmaps
pascal@9029 46 }
pascal@2177 47 }
pascal@2177 48
pascal@2177 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2177 50 genpkg_rules()
pascal@2177 51 {
Hans-G?nter@21889 52 mkdir -p $fs/usr/share/applications
Hans-G?nter@21889 53 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@21889 54
Hans-G?nter@23633 55 cp -a $install/usr $fs
Hans-G?nter@21889 56
Hans-G?nter@21889 57 # Save space ~100kB
Hans-G?nter@23633 58 rm $fs/usr/share/scite/*.html
Hans-G?nter@23633 59 rm $fs/usr/share/scite/*.png
pascal@2177 60 }