wok-6.x rev 13255

Add qemacs-tiny
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 16 21:48:35 2012 +0200 (2012-08-16)
parents eddbb48b0b8b
children 82b888228924
files qemacs-tiny/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/qemacs-tiny/receipt	Thu Aug 16 21:48:35 2012 +0200
     1.3 @@ -0,0 +1,31 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="qemacs-tiny"
     1.7 +VERSION="0.3.2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Tiny emacs clone."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://bellard.org/$PACKAGE/"
    1.13 +WGET_URL="${WEB_SITE}$TARBALL"
    1.14 +TAGS="editor"
    1.15 +
    1.16 +DEPENDS=""
    1.17 +BUILD_DEPENDS=""
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src
    1.23 +	sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
    1.24 +	./configure --prefix=/usr --enable-tiny && make qe
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr/bin
    1.31 +	cp -a $src/qe $fs/usr/bin/qemacs
    1.32 +	ln -s qemacs $fs/usr/bin/qe
    1.33 +}
    1.34 +