Switch to new download format and remove systemd directory

This commit is contained in:
2025-11-25 17:12:14 +02:00
parent d874d878b5
commit 239b326bba
2 changed files with 11 additions and 12 deletions
+7 -1
View File
@@ -1,14 +1,20 @@
name: xdg-user-dirs
description: Tool for managing 'well known' user directories
version: "0.19"
revision: 2
revision: 3
url: https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
license: GPL2
architecture: any
output_architecture: any
type: source
depends:
- glibc
- sh
make_depends:
- docbook-xsl-nons
- meson
downloads:
- url: https://gitlab.freedesktop.org/xdg/xdg-user-dirs/-/archive/v${BPM_PKG_VERSION}/xdg-user-dirs-v${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: aa18765c6f48b6c61f2fb426656dba640920f8436a04733965146af4c9a1f5e1
+4 -11
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://gitlab.freedesktop.org/xdg/xdg-user-dirs/-/archive/v${BPM_PKG_VERSION}/xdg-user-dirs-v${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() {
@@ -22,7 +12,10 @@ build() {
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
meson install -C build --destdir="$BPM_OUTPUT"
meson install -C build --destdir="$BPM_OUTPUT"
# Remove systemd directory
rm -r "$BPM_OUTPUT"/usr/lib
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xdg-user-dirs/COPYING