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