Switch to new download format and rebuild with libutempter

This commit is contained in:
2026-01-04 18:21:37 +02:00
parent 9d926833d1
commit a5df2b42e8
2 changed files with 11 additions and 19 deletions
+7 -1
View File
@@ -1,7 +1,7 @@
name: xfce4-terminal name: xfce4-terminal
description: A lightweight and easy to use terminal emulator made for the Xfce desktop environment description: A lightweight and easy to use terminal emulator made for the Xfce desktop environment
version: 1.1.5 version: 1.1.5
revision: 3 revision: 4
url: https://docs.xfce.org/apps/terminal/start url: https://docs.xfce.org/apps/terminal/start
license: GPL2-or-later license: GPL2-or-later
architecture: any architecture: any
@@ -9,8 +9,14 @@ type: source
depends: depends:
- gtk-layer-shell - gtk-layer-shell
- hicolor-icon-theme - hicolor-icon-theme
- libutempter
- libxfce4ui - libxfce4ui
- vte-gtk3 - vte-gtk3
make_depends: make_depends:
- glib - glib
- meson - meson
downloads:
- url: https://archive.xfce.org/src/apps/xfce4-terminal/${BPM_PKG_VERSION%.*}/xfce4-terminal-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 3c5b1d3a01a9a113852ac0f77d1c85bf3a356b43de33ec805b21ceca7d6f0a63
+4 -18
View File
@@ -2,32 +2,18 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # 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 # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://gitlab.xfce.org/apps/xfce4-terminal/-/archive/xfce4-terminal-${BPM_PKG_VERSION}/xfce4-terminal-xfce4-terminal-${BPM_PKG_VERSION}.tar.gz"
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 # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build meson setup --prefix=/usr --buildtype=release build
cd build meson compile -C build
meson setup --prefix=/usr --buildtype=release
meson compile
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build meson install -C build --destdir="$BPM_OUTPUT"
meson install --destdir="$BPM_OUTPUT"
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-terminal/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-terminal/COPYING
} }