Update package version to 3.17.4
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="libfuse/libfuse"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Trim prefix
|
||||||
|
VERSION=${TAG_NAME//fuse-/}
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
name: fuse3
|
name: fuse3
|
||||||
description: The reference implementation of the Linux FUSE (Filesystem in Userspace) interface
|
description: The reference implementation of the Linux FUSE (Filesystem in Userspace) interface
|
||||||
version: 3.16.2
|
version: 3.17.4
|
||||||
url: https://github.com/libfuse/libfuse
|
url: https://github.com/libfuse/libfuse
|
||||||
license: GPL2
|
license: GPL2
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -10,27 +10,30 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
# Disable installation of boot script and udev rule
|
||||||
|
sed -i '/^udev/,$ s/^/#/' util/meson.build
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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() {
|
||||||
sed -i '/^udev/,$ s/^/#/' util/meson.build
|
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release build
|
||||||
|
meson compile -C build
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
|
|
||||||
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release ..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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"
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
chmod u+s "$BPM_OUTPUT"/usr/bin/fusermount3
|
|
||||||
install -Dm644 ../util/fuse.conf "$BPM_OUTPUT"/etc/fuse.conf
|
|
||||||
|
|
||||||
|
# Fix binary permissions
|
||||||
|
chmod u+s "$BPM_OUTPUT"/usr/bin/fusermount3
|
||||||
|
|
||||||
|
# Install configuration file
|
||||||
|
install -Dm644 "$BPM_SOURCE"/util/fuse.conf "$BPM_OUTPUT"/etc/fuse.conf
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/fuse3/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/fuse3/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user