mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-03 16:40:25 +00:00
58 lines
1.8 KiB
Bash
58 lines
1.8 KiB
Bash
#! /bin/bash
|
|
|
|
# lz4
|
|
# Source: https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz
|
|
# Commit: 5b0ccb8b62eba9f0ed4b46ff3680c442c3e58188
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
# Version 1.9.5 not released yet. Use git
|
|
git clone https://github.com/lz4/lz4
|
|
cd lz4
|
|
git checkout 5b0ccb8b62eba9f0ed4b46ff3680c442c3e58188
|
|
|
|
make PREFIX=/usr -j2 && \
|
|
|
|
sudo -S make PREFIX=/usr DESTDIR=$BUILD install && \
|
|
sudo -S mkdir -pv /BMAN/install /BMAN/usr && \
|
|
sudo -S mv $BUILD/usr/share /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------------------------------------------------------|
|
|
lz4: lz4
|
|
lz4:
|
|
lz4: LZ4 is lossless compression algorithm with fast decoder @ multiple
|
|
lz4: GB/s per core.
|
|
lz4:
|
|
lz4: https://github.com/lz4/lz4
|
|
lz4
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/lz4-1.9.5-$PSUFFIX && \
|
|
cd /BMAN && \
|
|
cat > /tmp/slack-desc << "EOF"
|
|
lz4-doc: Manpages for lz4
|
|
lz4-doc:
|
|
lz4-doc: LZ4 is lossless compression algorithm with fast decoder @ multiple
|
|
lz4-doc: GB/s per core.
|
|
lz4-doc:
|
|
lz4-doc: https://github.com/lz4/lz4
|
|
lz4-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/lz4-doc-1.9.5-$NOPSUFFIX && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|