mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-13 14:24:02 +00:00
64 lines
2.0 KiB
Bash
64 lines
2.0 KiB
Bash
#! /bin/bash
|
|
|
|
# LibSSH2
|
|
# Source: https://www.libssh2.org/download/libssh2-1.10.0.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: GnuPG, libgcrypt, and OpenSSH (all three required for the testsuite)
|
|
# LTO: Tested with LLVM
|
|
|
|
./configure --prefix=/usr $BUILDTRUPLE \
|
|
--disable-static &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
read -p "Install?" &&
|
|
|
|
# If not using package manager, skip the rest
|
|
#sudo -S make install
|
|
|
|
sudo -S make DESTDIR=$BUILD install &&
|
|
sudo -S mkdir -pv /BMAN/install /BMAN/usr && \
|
|
sudo -S mv $BUILD/usr/share /BMAN/usr/ && \
|
|
|
|
cd $BUILD && sudo -S mkdir 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 ':'.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
libssh2: libssh2 (SSH2 library)
|
|
libssh2:
|
|
libssh2: libssh2 is a library implementing the SSH2 protocol, available under
|
|
libssh2: the revised BSD license.
|
|
libssh2:
|
|
libssh2: Homepage: http://www.libssh2.org/
|
|
libssh2:
|
|
libssh2:
|
|
libssh2:
|
|
libssh2:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libssh2-1.10.0-$(uname -m)-mlfs.txz &&
|
|
cd /BMAN && \
|
|
cat > /tmp/slack-desc << "EOF"
|
|
libssh2-doc: Manuals for libssh2 (SSH2 library)
|
|
libssh2-doc:
|
|
libssh2-doc: A library implementing the SSH2 protocol, available under the revised
|
|
libssh2-doc: BSD license.
|
|
libssh2-doc:
|
|
libssh2-doc: http://www.libssh2.org/
|
|
libssh2-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libssh2-doc-1.10.0-noarch-mlfs.txz && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|