# SliTaz package receipt. PACKAGE="scite" VERSION="4.3.2" CATEGORY="utilities" TAGS="text-editor" SHORT_DESC="Editor with syntax highlighting and source code editing features." MAINTAINER="rcx@zoominternet.net" LICENSE="PSL" WEB_SITE="https://www.scintilla.org/" TARBALL="${PACKAGE}${VERSION//./}.tgz" WGET_URL="$SF_MIRROR/scintilla/$TARBALL" DEPENDS="gcc83-lib-base gtk+ xorg-libXdamage" BUILD_DEPENDS="gcc83 gtk+-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/scintilla/files/SciTE/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/SciTE/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { export CC=gcc-83 export CXX=g++-83 # Build scintilla cd $src/scintilla/gtk make GTK2=1 prefix=/usr # Build SciTE cd $src/scite/gtk make GTK2=1 prefix=/usr && make prefix=/usr install && { # Desktop file and icon mkdir -p $DESTDIR/usr/share/applications mkdir -p $DESTDIR/usr/share/pixmaps cp SciTE.desktop $DESTDIR/usr/share/applications cp Sci48M.png $DESTDIR/usr/share/pixmaps } } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/applications mkdir -p $fs/usr/share/pixmaps cp -a $install/usr $fs # Save space ~100kB rm $fs/usr/share/scite/*.html rm $fs/usr/share/scite/*.png }