From 83cdc3715f9ead006c8df3e10a218eede6ec2915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 2 Nov 2022 11:28:35 +0700 Subject: [PATCH] emacs: use create_wrksrc --- srcpkgs/emacs/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/emacs/template b/srcpkgs/emacs/template index 939fbcecc7e..1e74ec047da 100644 --- a/srcpkgs/emacs/template +++ b/srcpkgs/emacs/template @@ -2,6 +2,7 @@ pkgname=emacs version=28.2 revision=1 +create_wrksrc=required build_style=gnu-configure configure_args="--with-file-notification=inotify --with-modules $(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";; esac -pre_configure() { +post_extract() { # Just configuring in different directories results in # spurious emacs rebuilds with incompatible build numbers. - mkdir -p nox - mv * nox || true - cp -a nox x11 - cp -a nox gtk3 + cp -a emacs-* nox + cp -a emacs-* x11 + cp -a emacs-* gtk3 } do_configure() {