wok-6.x view scite/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 4de7333f0ac9
children e919c5a2742d
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export CC=gcc-83
22 export CXX=g++-83
24 # Build scintilla
25 cd $src/scintilla/gtk
26 make GTK2=1 prefix=/usr
28 # Build SciTE
29 cd $src/scite/gtk
30 make GTK2=1 prefix=/usr &&
31 make prefix=/usr install &&
32 {
33 # Desktop file and icon
34 mkdir -p $DESTDIR/usr/share/applications
35 mkdir -p $DESTDIR/usr/share/pixmaps
36 cp SciTE.desktop $DESTDIR/usr/share/applications
37 cp Sci48M.png $DESTDIR/usr/share/pixmaps
38 }
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/applications
45 mkdir -p $fs/usr/share/pixmaps
47 cp -a $install/usr $fs
49 # Save space ~100kB
50 rm $fs/usr/share/scite/*.html
51 rm $fs/usr/share/scite/*.png
52 }