void-packages/srcpkgs/qemacs/template

34 lines
1.2 KiB
Bash

# Template file for 'qemacs'
pkgname=qemacs
version=6.3.2
revision=1
_githash=0e90c181078f3d85d0d44d985d541184223668e1
build_style=configure
configure_args="--prefix=/usr --mandir=/usr/share/man
--disable-x11 --disable-plugins"
short_desc="Small but powerful Emacs clone (with UTF-8, HTML, shell, dired)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/qemacs/qemacs"
distfiles="https://github.com/qemacs/qemacs/archive/${_githash}.tar.gz"
checksum=dd61939fd2662ad7bf0ebb11d0490ac5e4fe8fa5c5bd00eae8aaf54ccd96b0c9
# make: *** No rule to make target '.objs/Linux-x86_64-riscv64-linux-gnu-gcc/libqhtml.a', needed by 'qe_g'. Stop.
disable_parallel_build=yes
do_build() {
sed -i -e /HOST_CC/s/CFLAGS/HOST_CFLAGS/ -e /INSTALL/s/-s// \
Makefile */Makefile
echo CONFIG_HTML=yes >>config.mak
echo '#define CONFIG_HTML 1' >>config.h
make ${makejobs} V=1 TARGETS=qe STRIP=true CC="$CC" \
CFLAGS="$CFLAGS -funsigned-char -Ilibqhtml -I.. -I." \
LDFLAGS="$LDFLAGS"
}
do_install() {
make V=1 TARGETS=qe STRIP=true CC="$CC" \
CFLAGS="$CFLAGS -funsigned-char -Ilibqhtml -I.." \
LDFLAGS="$LDFLAGS" CONFIG_HTML= DESTDIR="$DESTDIR" install
vdoc qe-doc.html
vlicense LICENSE
}