mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-13 14:24:02 +00:00
47 lines
1.7 KiB
Bash
47 lines
1.7 KiB
Bash
#! /bin/bash
|
|
|
|
# libconfig
|
|
# Source: https://github.com/hyperrealm/libconfig/archive/v1.7.2.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
autoreconf -fiv &&
|
|
./configure $BUILDTRUPLE \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
sudo -S make -j1 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------------------------------------------------------|
|
|
libconfig: libconfig (Library for processing structured configuration files)
|
|
libconfig:
|
|
libconfig: Libconfig is a simple library for processing structured configuration
|
|
libconfig: files. This file format is more compact and more readable than XML
|
|
libconfig: and unlike XML, it is type-aware, so it is not necessary to do string
|
|
libconfig: parsing in application code. It is very compact and well-suited for
|
|
libconfig: memory-constrained systems like handheld devices.
|
|
libconfig:
|
|
libconfig: The library includes bindings for both the C and C++ languages.
|
|
libconfig:
|
|
libconfig:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libconfig-1.7.2-$(uname -m)-mlfs.txz &&
|
|
sudo -S rm -rf ${BUILD}/*
|