Receipt for: uemacs
source
PACKAGE="uemacs"
VERSION="20141208"
CATEGORY="editors"
TAGS="editor"
SHORT_DESC="Tiny emacs clone."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="other"
WEB_SITE="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://sourceforge.net/projects/slackbuildsdirectlinks/files/$PACKAGE/$PACKAGE$VERSION.tar.xz"
DEPENDS="ncurses"
BUILD_DEPENDS="ncurses-dev"
case "$ARCH" in
x86_64) DEPENDS="ncursesw"; BUILD_DEPENDS="ncursesw-dev" ;;
esac
current_version()
{
wget -O - https://sourceforge.net/projects/slackbuildsdirectlinks/files/uemacs/ 2>/dev/null | \
sed '/scope="row/!d;s|.*/uemacs||;s|.tar.*||;q'
}
compile_rules()
{
case "$ARCH" in
# x86_64 libcurses lacks the terminfo symbols (no split libtinfo);
# link libncursesw instead, after the objects (Makefile $LIBS slot)
x86_64) make LIBS="-lncursesw" ;;
# libtinfo is a static archive here: it must sit AFTER the objects
# (Makefile $LIBS slot), not in LDFLAGS (before them) or tputs/tgoto
# stay unresolved.
*) make LIBS="-ltinfo" ;;
esac
}
genpkg_rules()
{
mkdir -p $fs/usr/bin
cp -a $src/em $fs/usr/bin
ln -s em $fs/usr/bin/uemacs
}