wok-6.x annotate qemacs-x11/receipt @ rev 20217

syslinux: rework post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 17:09:18 2018 +0100 (2018-02-25)
parents 314b08d2fe81
children a78610b2eb47
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@13241 11 WEB_SITE="http://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@13241 19 # Rules to configure and make the package.
pascal@13241 20 compile_rules()
pascal@13241 21 {
pascal@20096 22 export CFLAGS="-Wno-error=unused-but-set-variable -O2"
pascal@20096 23 sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h
pascal@15281 24 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pascal@20096 25 make -j 1
pascal@13241 26 }
pascal@13241 27
pascal@13241 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13241 29 genpkg_rules()
pascal@13241 30 {
pascal@13241 31 mkdir -p $fs/usr/bin $fs/usr/share/qe
pascal@20093 32 mkdir -p $install/usr/share/doc $install/usr/share/man
pascal@20093 33 install $src/qe-doc.html $src/COPYING $src/README $install/usr/share/doc
pascal@20093 34 install $src/*.1 $install/usr/share/man
pascal@13241 35 install -m 755 $src/qe $fs/usr/bin/qemacs
pascal@13241 36 ln -s qemacs $fs/usr/bin/qe
pascal@13241 37 install -m 755 -s $src/html2png $fs/usr/bin
pascal@13241 38 install $src/kmaps $src/ligatures $fs/usr/share/qe
pascal@13241 39 }
pascal@13241 40