mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
62 lines
2.3 KiB
Bash
62 lines
2.3 KiB
Bash
#! /bin/bash
|
|
|
|
# libimobiledevice
|
|
# Source: https://github.com/libimobiledevice/libimobiledevice/releases/download/1.3.0/libimobiledevice-1.3.0.tar.bz2
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: libusbmuxd, libplist, Cython, libusb
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
# LibreSSL does not provide this function
|
|
sed -e '/SSL_CTX_set_security_level/d' -i src/idevice.c &&
|
|
sed -e 's,-L$(libdir),,g' -i cython/Makefile.am &&
|
|
autoreconf -vfi &&
|
|
|
|
./configure --prefix=/usr --disable-static $BUILDTRUPLE PYTHON=/usr/bin/python3 &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
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 -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------------------------------------------------------|
|
|
libimobiledevice: libimobiledevice (library for connecting to Apple's iPhone or iPod)
|
|
libimobiledevice:
|
|
libimobiledevice: libimobiledevice is a library for connecting to Apple's iPhone
|
|
libimobiledevice: or iPod touch devices
|
|
libimobiledevice:
|
|
libimobiledevice: https://github.com/libimobiledevice
|
|
libimobiledevice:
|
|
libimobiledevice:
|
|
libimobiledevice:
|
|
libimobiledevice:
|
|
libimobiledevice:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libimobiledevice-1.3.0-$(uname -m)-mlfs.txz && \
|
|
cd /BMAN && \
|
|
cat > /tmp/slack-desc << "EOF"
|
|
libimobiledevice-doc: Manuals for libimobiledevice
|
|
libimobiledevice-doc:
|
|
libimobiledevice-doc: A library for connecting to Apple's iPhone or iPod Touch.
|
|
libimobiledevice-doc:
|
|
libimobiledevice-doc: https://github.com/libimobiledevice
|
|
libimobiledevice-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ && \
|
|
sudo -S makepkg -l y -c n $PKGS/libimobiledevice-1.3.0-noarch-mlfs.txz && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|