Upgraded libplist to 2.2.0

This commit is contained in:
dslm4515
2020-11-17 20:46:59 -06:00
parent 1fd7728100
commit 995db5d6fd
2 changed files with 47 additions and 14 deletions

View File

@ -1,14 +0,0 @@
#! /bin/bash
# Libplist 2.0.0
# source: https://github.com/libimobiledevice/libplist/archive/2.0.0.tar.gz
autoreconf -fvi
./configure --prefix=/usr $BUILDTRUPLE &&
read -p "Compile? " && make -j2 &&
read -p "Install? " && sudo -S porg -lD "make install" &&
sudo -S porg -lD+ "mkdir -pv /usr/include/plist/cython" &&
sudo -S porg -lD+ "cp -v cython/*.pxd /usr/include/plist/cython/"

View File

@ -0,0 +1,47 @@
#! /bin/bash
# libplist
# Source: https://github.com/libimobiledevice/libplist/releases/download/2.2.0/libplist-2.2.0.tar.bz2
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: Cython, GLib
# Recommended: Swig
# Optional: NONE
sed -i 's,-L$(libdir),,g' cython/Makefile.am &&
autoreconf -fvi &&
sed -i "s#\$PYTHON-config#__DOES_NOT_EXIST__#" configure &&
./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------------------------------------------------------|
libplist: libplist (A library for Apple Binary and XML Property Lists)
libplist:
libplist: libplist is a library that attempts to support Apple Binary and XML
libplist: Property Lists. It is used by libgpod.
libplist:
libplist: The libplist homepage: http://www.libimobiledevice.org/
libplist:
libplist:
libplist:
libplist:
libplist:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/libplist-2.2.0-$(uname -m)-mlfs.txz &&
sudo -S rm -rf ${BUILD}/*