wok annotate qemacs-tiny/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (7 days ago) |
parents | a78610b2eb47 |
children |
rev | line source |
---|---|
pascal@13255 | 1 # SliTaz package receipt. |
pascal@13255 | 2 |
pascal@13255 | 3 PACKAGE="qemacs-tiny" |
pascal@13256 | 4 SOURCE="qemacs" |
pascal@15778 | 5 VERSION="0.3.3" |
pascal@18559 | 6 CATEGORY="editors" |
pascal@13255 | 7 SHORT_DESC="Tiny emacs clone." |
pascal@13255 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14996 | 9 LICENSE="LGPL2.1" |
pascal@13256 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20669 | 11 WEB_SITE="https://bellard.org/$SOURCE/" |
pascal@13255 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@13255 | 13 TAGS="editor" |
pascal@13255 | 14 |
pascal@13255 | 15 DEPENDS="" |
pascal@13255 | 16 BUILD_DEPENDS="" |
pascal@13255 | 17 |
pascal@24425 | 18 # What is the latest version available today? |
pascal@24425 | 19 current_version() |
pascal@24425 | 20 { |
pascal@24425 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 22 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 23 } |
pascal@24425 | 24 |
pascal@13255 | 25 # Rules to configure and make the package. |
pascal@13255 | 26 compile_rules() |
pascal@13255 | 27 { |
pascal@13269 | 28 export CFLAGS="-Wno-error=unused-but-set-variable -O2" |
pascal@13255 | 29 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h |
pascal@15281 | 30 ./configure --prefix=/usr --enable-tiny && |
pascal@15281 | 31 make -j 1 qe |
pascal@13255 | 32 } |
pascal@13255 | 33 |
pascal@13255 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13255 | 35 genpkg_rules() |
pascal@13255 | 36 { |
pascal@13255 | 37 mkdir -p $fs/usr/bin |
pascal@20093 | 38 mkdir -p $install/usr/share/doc $install/usr/share/man |
pascal@20093 | 39 install $src/qe-doc.html $src/COPYING $src/README $install/usr/share/doc |
pascal@20093 | 40 install $src/*.1 $install/usr/share/man |
pascal@13255 | 41 cp -a $src/qe $fs/usr/bin/qemacs |
pascal@13255 | 42 ln -s qemacs $fs/usr/bin/qe |
pascal@13255 | 43 } |
pascal@13255 | 44 |