emacs: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-11-02 11:28:35 +07:00 committed by Đoàn Trần Công Danh
parent c522b98410
commit 83cdc3715f

View file

@ -2,6 +2,7 @@
pkgname=emacs pkgname=emacs
version=28.2 version=28.2
revision=1 revision=1
create_wrksrc=required
build_style=gnu-configure build_style=gnu-configure
configure_args="--with-file-notification=inotify --with-modules configure_args="--with-file-notification=inotify --with-modules
$(vopt_with jpeg) $(vopt_with tiff) $(vopt_with gif) $(vopt_with png) $(vopt_with jpeg) $(vopt_with tiff) $(vopt_with gif) $(vopt_with png)
@ -48,13 +49,12 @@ case "$XBPS_TARGET_MACHINE" in
*) build_options_default+=" nativecomp";; *) build_options_default+=" nativecomp";;
esac esac
pre_configure() { post_extract() {
# Just configuring in different directories results in # Just configuring in different directories results in
# spurious emacs rebuilds with incompatible build numbers. # spurious emacs rebuilds with incompatible build numbers.
mkdir -p nox cp -a emacs-* nox
mv * nox || true cp -a emacs-* x11
cp -a nox x11 cp -a emacs-* gtk3
cp -a nox gtk3
} }
do_configure() { do_configure() {