From 54155bdd93f1d16298eca89bf4d3d3c46334c3dd Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 19 Dec 2025 15:14:46 +0200 Subject: [PATCH] Switch to new download format --- pkg.info | 39 ++++++++++++++++++++++++++++++++++++--- source.sh | 10 ---------- 2 files changed, 36 insertions(+), 13 deletions(-) diff --git a/pkg.info b/pkg.info index 3700b8d..a5b9a47 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,42 @@ name: emacs description: An extensible, customizable, free/libre text editor -version: 30.2 -revision: 2 +version: "30.2" +revision: 3 url: https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html license: GPL3-or-later architecture: any -depends: ["acl","alsa-lib","dbus","fontconfig","freetype2","gmp","gnutls","gtk3","gdk-pixbuf","giflib","glib","gpm","harfbuzz","lcms2","libice","libjpeg-turbo","ncurses","libpng","librsvg","libsm","libtiff","libwebp","libxfixes","libxml2","pango","sqlite","tree-sitter","zlib"] type: source +depends: + - acl + - alsa-lib + - dbus + - fontconfig + - freetype2 + - gmp + - gnutls + - gtk3 + - gdk-pixbuf + - giflib + - glib + - gpm + - harfbuzz + - lcms2 + - libice + - libjpeg-turbo + - ncurses + - libpng + - librsvg + - libsm + - libtiff + - libwebp + - libxfixes + - libxml2 + - pango + - sqlite + - tree-sitter + - zlib +downloads: + - url: https://ftpmirror.gnu.org/gnu/emacs/emacs-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: b3f36f18a6dd2715713370166257de2fae01f9d38cfe878ced9b1e6ded5befd9 diff --git a/source.sh b/source.sh index 0747a89..69dff83 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,6 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://ftpmirror.gnu.org/gnu/emacs/emacs-${BPM_PKG_VERSION}.tar.xz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() {