mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-10 02:45:15 +00:00
65 lines
2.4 KiB
Bash
65 lines
2.4 KiB
Bash
#! /bin/bash
|
|
|
|
# libexif
|
|
# Source: https://github.com/libexif/libexif/releases/download/v0.6.24/libexif-0.6.24.tar.bz2
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: Doxygen, Graphviz
|
|
|
|
# If optimizing with GCC:
|
|
export CFLAGS+="-march=native -O3 "
|
|
export CFLAGS+="-fno-lto -fstack-protector-strong -fzero-call-used-regs=used "
|
|
unset LDFLAGS
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--with-doc-dir=/usr/share/doc/libexif-0.6.24 $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/doc /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------------------------------------------------------|
|
|
libexif: libexif (Exchangeable Image File Format library)
|
|
libexif:
|
|
libexif: EXIF stands for Exchangeable Image File Format, which is a format used
|
|
libexif: to store extra information in images such as the JPEG files produced
|
|
libexif: by digital cameras. The libexif library allows programs such as
|
|
libexif: gthumb to parse, edit, and save EXIF data.
|
|
libexif:
|
|
libexif:
|
|
libexif:
|
|
libexif:
|
|
libexif:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libexif-0.6.24-$(uname -m)-mlfs.txz &&
|
|
cd /BMAN && \
|
|
cat > /tmp/slack-desc << "EOF"
|
|
libexif-doc: Manuals for libexif (Exchangeable Image File Format library)
|
|
libexif-doc:
|
|
libexif-doc: A format used to store extra information in images such as the JPEG
|
|
libexif-doc: files produced by digital cameras. The libexif library allows
|
|
libexif-doc: programs such as gthumb to parse, edit, and save EXIF data.
|
|
libexif-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libexif-doc-0.6.24-noarch--mlfs.txz && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|