wok-current view qemacs/receipt @ rev 25380
updated unhide (20130526 -> 20210124)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 16:42:50 2022 +0100 (2022-07-30) |
parents | a78610b2eb47 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="qemacs"
4 VERSION="0.3.3"
5 CATEGORY="editors"
6 SHORT_DESC="Light emacs clone."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://bellard.org/$PACKAGE/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 TAGS="editor"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CFLAGS="-Wno-error=unused-but-set-variable -O2"
28 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
29 ./configure --prefix=/usr --disable-x11 $CONFIGURE_ARGS &&
30 make -j 1
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/usr/share/qe
37 mkdir -p $install/usr/share/doc $install/usr/share/man
38 install $src/qe-doc.html $src/COPYING $src/README $install/usr/share/doc
39 install $src/*.1 $install/usr/share/man
40 install -m 755 $src/qe $fs/usr/bin/qemacs
41 ln -s qemacs $fs/usr/bin/qe
42 install -m 755 -s $src/html2png $fs/usr/bin
43 install $src/kmaps $src/ligatures $fs/usr/share/qe
44 }