diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..9772208 --- /dev/null +++ b/check-version.sh @@ -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" diff --git a/pkg.info b/pkg.info index a982397..d46109b 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh index 2b2b3f9..69ee97b 100644 --- a/source.sh +++ b/source.sh @@ -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 }