diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/libimobiledevice/APKBUILD | 38 | ||||
-rw-r--r-- | user/libimobiledevice/modern-libplist.patch | 34 |
2 files changed, 72 insertions, 0 deletions
diff --git a/user/libimobiledevice/APKBUILD b/user/libimobiledevice/APKBUILD new file mode 100644 index 000000000..f8bea18dc --- /dev/null +++ b/user/libimobiledevice/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=libimobiledevice +pkgver=1.3.0 +pkgrel=0 +pkgdesc="Library for working with Apple iOS devices" +url="https://libimobiledevice.org/" +arch="all" +license="LGPL-2.1+ AND GPL-2.0+ AND GPL-2.0-only AND MIT" +depends="" +makedepends="gnutls-dev libgcrypt-dev libusbmuxd-dev py3-cython python3-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/libimobiledevice/libimobiledevice/releases/download/$pkgver/libimobiledevice-$pkgver.tar.bz2 + modern-libplist.patch" + +build() { + ln -s /usr/bin/python3 python + export PATH=".:$PATH" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + make check +} + +package() { + make PATH=".:$PATH" DESTDIR="$pkgdir" install +} + +sha512sums="7b22040552a6561729c79c0846f571b0e608abb7c297567d2ecfdd1718ce86df08a5e34ba51f209bdee96a1917da15e7ba3aaef1d289a951d1d3470b1f89e6a8 libimobiledevice-1.3.0.tar.bz2 +3aa60cdbd9539ac55cdd1e8a6d1860ddfcfec6e692ff9e3b0d4620627f5f373872b819a6008a10e8669ee5772234e4a8a66c1dab89803d401503ee43f51f0a6c modern-libplist.patch" diff --git a/user/libimobiledevice/modern-libplist.patch b/user/libimobiledevice/modern-libplist.patch new file mode 100644 index 000000000..eac8a774d --- /dev/null +++ b/user/libimobiledevice/modern-libplist.patch @@ -0,0 +1,34 @@ +Patch-Source: https://github.com/archlinux/svntogit-packages/blob/2f17c7d5c91d164453ea71c28adea93499016af2/trunk/libplist-2.3.0.diff +-- +diff --git i/common/utils.c w/common/utils.c +index 7f66ec2..7ebe997 100644 +--- i/common/utils.c ++++ w/common/utils.c +@@ -314,7 +314,7 @@ int plist_read_from_filename(plist_t *plist, const char *filename) + return 1; + } + +-int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format) ++int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format) + { + char *buffer = NULL; + uint32_t length; +diff --git i/common/utils.h w/common/utils.h +index 2c3acec..4faa5bd 100644 +--- i/common/utils.h ++++ w/common/utils.h +@@ -51,13 +51,8 @@ char *generate_uuid(void); + void buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length); + void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length); + +-enum plist_format_t { +- PLIST_FORMAT_XML, +- PLIST_FORMAT_BINARY +-}; +- + int plist_read_from_filename(plist_t *plist, const char *filename); +-int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format); ++int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format); + + void plist_print_to_stream(plist_t plist, FILE* stream); + |