Switch to new download format and remove systemd directory
This commit is contained in:
@@ -1,14 +1,20 @@
|
|||||||
name: xdg-user-dirs
|
name: xdg-user-dirs
|
||||||
description: Tool for managing 'well known' user directories
|
description: Tool for managing 'well known' user directories
|
||||||
version: "0.19"
|
version: "0.19"
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
|
url: https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
|
||||||
license: GPL2
|
license: GPL2
|
||||||
architecture: any
|
architecture: any
|
||||||
output_architecture: any
|
output_architecture: any
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
|
- glibc
|
||||||
- sh
|
- sh
|
||||||
make_depends:
|
make_depends:
|
||||||
- docbook-xsl-nons
|
- docbook-xsl-nons
|
||||||
- meson
|
- 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
|
||||||
|
|||||||
@@ -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 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.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
|
# 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() {
|
||||||
@@ -24,6 +14,9 @@ build() {
|
|||||||
package() {
|
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 package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xdg-user-dirs/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xdg-user-dirs/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user