Switch to new download format

This commit is contained in:
2025-12-19 15:14:46 +02:00
parent d2d4810d4a
commit 54155bdd93
2 changed files with 36 additions and 13 deletions
+36 -3
View File
@@ -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
-10
View File
@@ -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() {