Files
BMLFS/build-scripts/libmd.build
2024-08-18 15:29:11 -05:00

44 lines
1.4 KiB
Bash

#! /bin/bash
# libmd
# Source: https://archive.hadrons.org/software/libmd/libmd-1.1.0.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: NONE
# Recommended: NONE
# Optional: NONE
./configure --prefix=usr
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD install &&
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------------------------------------------------------|
libmd: libmd
libmd:
libmd: This library provides message digest functions found on BSD systems
libmd: either on their libc or libmd libraries and lacking on others like
libmd: GNU systems, thus making it easier to port projects with strong BSD
libmd: origins, without needing to embed the same code over and over again
libmd: on each project.
libmd:
libmd: https://www.hadrons.org/software/libmd
libmd:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/libmd-1.1.0-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*