mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-06 11:02:53 +00:00
Upgraded libbytesize from 2.6 to 2.10
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# libbytesize
|
||||
# Source: https://github.com/storaged-project/libbytesize/releases/download/2.6/libbytesize-2.6.tar.gz
|
||||
# Source: https://github.com/storaged-project/libbytesize/releases/download/2.10/libbytesize-2.10.tar.gz
|
||||
#
|
||||
# $BUILD = Directory to temporarily install
|
||||
# $PKGS = Directory to store built packages
|
||||
@ -17,6 +17,9 @@ export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
|
||||
export CXXFLAGS=$CFLAGS
|
||||
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
||||
|
||||
# If mpfr is not in /usr, add these flags:
|
||||
LDFLAGS=" -L/opt/gnu/lib -Wl,-rpath=/opt/gnu/lib" \
|
||||
CPPFLAGS="-I/opt/gnu/include " \
|
||||
./configure --prefix=/usr $BUILDTRUPLE --with-python3 &&
|
||||
read -p "Compile?" && make -j2 &&
|
||||
|
||||
@ -48,7 +51,7 @@ libbytesize:
|
||||
libbytesize:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/libbytesize-2.6-$(uname -m)-mlfs.txz &&
|
||||
sudo -S makepkg -l y -c n $PKGS/libbytesize-2.10-$PSUFFIX &&
|
||||
cd /BMAN && \
|
||||
cat > /tmp/slack-desc << "EOF"
|
||||
libbytesize-doc: Manuals for libbytesize
|
||||
@ -58,5 +61,5 @@ libbytesize-doc: sizes in bytes.
|
||||
libbytesize-doc:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/libbytesize-doc-2.6-noarch-mlfs.txz && \
|
||||
sudo -S makepkg -l y -c n $PKGS/libbytesize-doc-2.10-$PSUFFIX && \
|
||||
sudo -S rm -rf ${BUILD}/* /BMAN/*
|
||||
|
Reference in New Issue
Block a user