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