Files
BMLFS/build-scripts/libassuan.build
2023-11-04 23:39:35 -05:00

56 lines
1.8 KiB
Bash

#! /bin/bash
# libassuan
# Source: https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.6.tar.bz2
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: libgpg-error
# Recommended: NONE
# Optional: NONE
./configure --prefix=/usr $BUILDTRUPLE &&
read -p "Compile?" && make -j2 &&
sudo -S make DESTDIR=$BUILD install &&
sudo -S mkdir -pv /BMAN/install && \
sudo -S mkdir -pv /BMAN/usr/share && \
sudo -S mv $BUILD/usr/share/info /BMAN/usr/share && \
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------------------------------------------------------|
libassuan: libassuan (Interprocess Communication Library for GPG)
libassuan:
libassuan: This is the IPC library used by GnuPG 2.x, GPGME and a few other
libassuan: packages.
libassuan:
libassuan:
libassuan:
libassuan:
libassuan:
libassuan:
libassuan:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/libassuan-2.5.6-$PSUFFIX &&
cd /BMAN && \
cat > /tmp/slack-desc << "EOF"
libassuan-doc: Manuals for libassuan (Interprocess Communication Library for GPG)
libassuan-doc:
libassuan-doc: The IPC library used by GnuPG 2.x, GPGME and a few others.
libassuan-doc:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/libassuan-doc-2.5.6-$NOPSUFFIX
sudo -S rm -rf ${BUILD}/* /BMAN/*