wok annotate qemacs-x11/receipt @ rev 25503

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