mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
71 lines
2.4 KiB
Bash
71 lines
2.4 KiB
Bash
#! /bin/bash
|
|
|
|
# Fuse 3
|
|
# Source: https://github.com/libfuse/libfuse/releases/download/fuse-3.16.2/fuse-3.16.2.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: Doxygen
|
|
|
|
# Disable the installation of a boot script and udev rule that are not needed.
|
|
sed -i '/^udev/,$ s/^/#/' util/meson.build &&
|
|
# Fix a bug with the test_passthrough_hp test.
|
|
#sed -i 's/HAVE_CONFIG_H/HAVE_LIBFUSE_PRIVATE_CONFIG_H/' meson.build
|
|
#patch -Np1 -i ../patches/fuse3-adelie/fix-realpath.patch &&
|
|
|
|
mkdir build &&
|
|
cd build &&
|
|
|
|
meson --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--buildtype=release .. &&
|
|
read -p "Compile?" && ninja -j2 &&
|
|
|
|
sudo -S DESTDIR=$BUILD ninja install &&
|
|
sudo -S mkdir -pv /BMAN/install /BMAN/usr && \
|
|
sudo -S mv $BUILD/usr/share/man /BMAN/usr/ && \
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
fuse3: fuse3 (Filesystem in Userspace)
|
|
fuse3:
|
|
fuse3: FUSE is a simple interface for userspace programs to export a virtual
|
|
fuse3: filesystem to the Linux kernel. FUSE also aims to provide a secure
|
|
fuse3: method for non privileged users to create and mount their own
|
|
fuse3: filesystem implementations.
|
|
fuse3:
|
|
fuse3: Homepage: https://github.com/libfuse/libfuse
|
|
fuse3:
|
|
fuse3:
|
|
fuse3:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S chmod -v u+s usr/bin/fusermount3 &&
|
|
sudo -S makepkg -l y -c n $PKGS/fuse3-3.16.2-$PSUFFIX && \
|
|
cd /BMAN &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
fuse3-doc: Manuals for fuse3 (Filesystem in Userspace)
|
|
fuse3-doc:
|
|
fuse3-doc: A simple interface for userspace programs to export a virtual
|
|
fuse3-doc: filesystem to the Linux kernel.
|
|
fuse3-doc:
|
|
fuse3-doc: https://github.com/libfuse/libfuse
|
|
fuse3-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ && \
|
|
sudo -S makepkg -l y -c n $PKGS/fuse3-doc-3.16.2-$NOPSUFFIX && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|