# SliTaz package receipt. PACKAGE="qemacs" VERSION="0.3.3" CATEGORY="editors" SHORT_DESC="Light emacs clone." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="LGPL2.1" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://bellard.org/$PACKAGE/" WGET_URL="${WEB_SITE}$TARBALL" TAGS="editor" DEPENDS="" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { export CFLAGS="-Wno-error=unused-but-set-variable -O2" sed -i 's/\(define SAVED_DATA_SIZE \).*/\1 __builtin_offsetof(EditState,end_of_saved_data)/' qe.h ./configure --prefix=/usr --disable-x11 $CONFIGURE_ARGS && make -j 1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/usr/share/qe mkdir -p $install/usr/share/doc $install/usr/share/man install $src/qe-doc.html $src/COPYING $src/README $install/usr/share/doc install $src/*.1 $install/usr/share/man install -m 755 $src/qe $fs/usr/bin/qemacs ln -s qemacs $fs/usr/bin/qe install -m 755 -s $src/html2png $fs/usr/bin install $src/kmaps $src/ligatures $fs/usr/share/qe }