wok-6.x annotate scite/receipt @ rev 4830
Up: scite (2.01) - Add desktop file and remove html files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 21 23:09:20 2010 +0100 (2010-01-21) |
parents | 0b02072d7f48 |
children | 4897058add72 |
rev | line source |
---|---|
pascal@2177 | 1 # SliTaz package receipt. |
pascal@2177 | 2 |
pascal@2177 | 3 PACKAGE="scite" |
pankso@4830 | 4 VERSION="2.01" |
pankso@4830 | 5 SHORT_VERSION="201" |
pascal@2177 | 6 CATEGORY="utilities" |
pankso@4830 | 7 SHORT_DESC="Editor with syntax highlighting and source code editing features." |
pankso@2183 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@2524 | 9 DEPENDS="gtk+ xorg-libXdamage" |
pascal@2177 | 10 BUILD_DEPENDS="gtk+-dev" |
pascal@2177 | 11 TARBALL="${PACKAGE}${SHORT_VERSION}.tgz" |
pascal@2177 | 12 WEB_SITE="http://www.scintilla.org/" |
pascal@2177 | 13 WGET_URL="$SF_MIRROR/scintilla/$TARBALL" |
pascal@2177 | 14 |
pascal@2177 | 15 # Rules to configure and make the package. |
pascal@2177 | 16 compile_rules() |
pascal@2177 | 17 { |
pascal@2177 | 18 # Build scintilla |
pascal@2177 | 19 cd scintilla/gtk |
pascal@2177 | 20 make GTK2=1 prefix=/usr |
pascal@2177 | 21 cd ../.. |
pascal@2177 | 22 |
pascal@2177 | 23 # Build SciTE |
pascal@2177 | 24 cd scite/gtk |
pankso@2182 | 25 make GTK2=1 prefix=/usr |
pascal@2177 | 26 make prefix=/usr DESTDIR=$src/_pkg install |
pascal@2177 | 27 } |
pascal@2177 | 28 |
pascal@2177 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2177 | 30 genpkg_rules() |
pascal@2177 | 31 { |
pankso@2182 | 32 mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps |
pascal@2177 | 33 cp -a $_pkg/usr $fs |
pankso@2182 | 34 # Desktop file and icon |
pankso@2182 | 35 cp $WOK/$PACKAGE/scite/gtk/SciTE.desktop $fs/usr/share/applications |
pankso@2182 | 36 cp $WOK/$PACKAGE/scite/gtk/Sci48M.png $fs/usr/share/pixmaps |
pankso@4830 | 37 # Save space ~100kb |
pankso@4830 | 38 rm $fs/usr/share/scite/*.html |
pankso@4830 | 39 rm $fs/usr/share/scite/*.png |
pascal@2177 | 40 } |
pascal@2177 | 41 |
pankso@2182 | 42 clean_wok() |
pankso@2182 | 43 { |
pankso@2182 | 44 rm -rf scite scintilla |
pankso@2182 | 45 } |