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
|
||||
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
|
||||
license: GPL2
|
||||
architecture: any
|
||||
|
||||
@@ -10,27 +10,30 @@ FILENAME="${DOWNLOAD##*/}"
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
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
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
sed -i '/^udev/,$ s/^/#/' util/meson.build
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release ..
|
||||
ninja
|
||||
meson setup --prefix=/usr --libdir=/usr/lib --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
|
||||
DESTDIR="$BPM_OUTPUT" ninja install
|
||||
chmod u+s "$BPM_OUTPUT"/usr/bin/fusermount3
|
||||
install -Dm644 ../util/fuse.conf "$BPM_OUTPUT"/etc/fuse.conf
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user