wok annotate scite/receipt @ rev 13818

tazbug-website: fix genpkg_rules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 06 18:21:06 2013 +0100 (2013-01-06)
parents 7b924ab3257e
children 3b4e4318134e
rev   line source
pascal@2177 1 # SliTaz package receipt.
pascal@2177 2
pascal@2177 3 PACKAGE="scite"
slaxemulator@13004 4 VERSION="3.2.0"
pascal@2177 5 CATEGORY="utilities"
pankso@4830 6 SHORT_DESC="Editor with syntax highlighting and source code editing features."
pankso@2183 7 MAINTAINER="rcx@zoominternet.net"
slaxemulator@11318 8 TARBALL="${PACKAGE}${VERSION//./}.tgz"
pascal@2177 9 WEB_SITE="http://www.scintilla.org/"
pascal@2177 10 WGET_URL="$SF_MIRROR/scintilla/$TARBALL"
pascal@2177 11
slaxemulator@10971 12 DEPENDS="gtk+ xorg-libXdamage gcc-lib-base"
slaxemulator@10971 13 BUILD_DEPENDS="gtk+-dev"
slaxemulator@10971 14
pascal@2177 15 # Rules to configure and make the package.
pascal@2177 16 compile_rules()
pascal@2177 17 {
pascal@2177 18 # Build scintilla
slaxemulator@8428 19 cd $src/scintilla/gtk
pascal@2177 20 make GTK2=1 prefix=/usr
pascal@2177 21
pascal@2177 22 # Build SciTE
slaxemulator@8428 23 cd $src/scite/gtk
pascal@5007 24 make GTK2=1 prefix=/usr &&
pascal@9029 25 make prefix=/usr install && {
pascal@9029 26 # Desktop file and icon
pascal@9029 27 mkdir -p $DESTDIR/usr/share/applications $DESTDIR/usr/share/pixmaps
pascal@9029 28 cp SciTE.desktop $DESTDIR/usr/share/applications
pascal@9029 29 cp Sci48M.png $DESTDIR/usr/share/pixmaps
pascal@9029 30 }
pascal@2177 31 }
pascal@2177 32
pascal@2177 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2177 34 genpkg_rules()
pascal@2177 35 {
pankso@2182 36 mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps
slaxemulator@13004 37 cp -a $install/usr $fs
pankso@4830 38 # Save space ~100kb
pankso@4830 39 rm $fs/usr/share/scite/*.html
pankso@4830 40 rm $fs/usr/share/scite/*.png
pascal@2177 41 }