Switch to new download format and rebuild with libutempter
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: xfce4-terminal
|
||||
description: A lightweight and easy to use terminal emulator made for the Xfce desktop environment
|
||||
version: 1.1.5
|
||||
revision: 3
|
||||
revision: 4
|
||||
url: https://docs.xfce.org/apps/terminal/start
|
||||
license: GPL2-or-later
|
||||
architecture: any
|
||||
@@ -9,8 +9,14 @@ type: source
|
||||
depends:
|
||||
- gtk-layer-shell
|
||||
- hicolor-icon-theme
|
||||
- libutempter
|
||||
- libxfce4ui
|
||||
- vte-gtk3
|
||||
make_depends:
|
||||
- glib
|
||||
- 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
|
||||
|
||||
@@ -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 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
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
meson setup --prefix=/usr --buildtype=release
|
||||
meson compile
|
||||
meson setup --prefix=/usr --buildtype=release build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
|
||||
meson install --destdir="$BPM_OUTPUT"
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-terminal/COPYING
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user