wok view qemacs-tiny/receipt @ rev 25102
Use archive.org for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 16:00:20 2022 +0000 (2022-06-21) |
parents | a78610b2eb47 |
children |
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="https://bellard.org/$SOURCE/"
12 WGET_URL="${WEB_SITE}$TARBALL"
13 TAGS="editor"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CFLAGS="-Wno-error=unused-but-set-variable -O2"
29 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
30 ./configure --prefix=/usr --enable-tiny &&
31 make -j 1 qe
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 mkdir -p $install/usr/share/doc $install/usr/share/man
39 install $src/qe-doc.html $src/COPYING $src/README $install/usr/share/doc
40 install $src/*.1 $install/usr/share/man
41 cp -a $src/qe $fs/usr/bin/qemacs
42 ln -s qemacs $fs/usr/bin/qe
43 }