### this file is sourced not run
PKGVER=1.3.0
PKGBUILD=1
PKGARCH=x86_64

# source: james,step
TARBALL=libimobiledevice-$PKGVER.tar.bz2
MD5SUM=c50a3a32acf33dc8c9ec88137ad12ec4
SRC_URL=https://github.com/libimobiledevice/libimobiledevice/releases/download/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libusbmuxd >= libusbmuxd-2.0.2-x86_64-1
libplist >= libplist-2.2.0-x86_64-1
libgcrypt >= libgcrypt-1.8.2-x86_64-1' # for gnutls
SLACKDESC="libimobiledevice: libimobiledevice $PKGVER (iOS devices access library)
libimobiledevice:
libimobiledevice: A library to communicate with services of Apple iOS devices using
libimobiledevice: native protocols.
libimobiledevice:
libimobiledevice: http://www.libimobiledevice.org/
libimobiledevice: https://github.com/libimobiledevice/libimobiledevice
libimobiledevice:
libimobiledevice:
libimobiledevice:
libimobiledevice:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
# https://github.com/libimobiledevice/libimobiledevice/issues/357#issuecomment-239504259
# build against gnutls. if openssl wasn't built with support for SSLv3, you will
# not be able to connect any pre iOS 9 devices anyways (iOS 9 can work with
# TLSv1 and also with SSLv3, but for example iOS 7 will not). Check supported versions:
# openssl s_client -help 2>&1 | awk '/-ssl[0-9]|-tls[0-9]/{print $1}'

	CONFFLAGS="$CONFFLAGS --disable-static --disable-openssl"
	pkg_build_autoconf &&
	pkg_build_slackdesc
}

# vim:ft=sh

