wok-6.x view qemacs-tiny/receipt @ rev 20096

qemacs: does not need gcc3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 06 17:23:41 2017 +0200 (2017-10-06)
parents 314b08d2fe81
children a78610b2eb47
line source
1 # SliTaz package receipt.
3 PACKAGE="qemacs-tiny"
4 SOURCE="qemacs"
5 VERSION="0.3.3"
6 CATEGORY="editors"
7 SHORT_DESC="Tiny emacs clone."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="LGPL2.1"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://bellard.org/$SOURCE/"
12 WGET_URL="${WEB_SITE}$TARBALL"
13 TAGS="editor"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export CFLAGS="-Wno-error=unused-but-set-variable -O2"
22 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
23 ./configure --prefix=/usr --enable-tiny &&
24 make -j 1 qe
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 mkdir -p $install/usr/share/doc $install/usr/share/man
32 install $src/qe-doc.html $src/COPYING $src/README $install/usr/share/doc
33 install $src/*.1 $install/usr/share/man
34 cp -a $src/qe $fs/usr/bin/qemacs
35 ln -s qemacs $fs/usr/bin/qe
36 }