Date: Saturday, May 6, 2023 @ 16:59:27
  Author: heftig
Revision: 476871

archrelease: copy trunk to staging-x86_64

Added:
  libimobiledevice/repos/staging-x86_64/
  libimobiledevice/repos/staging-x86_64/PKGBUILD
    (from rev 476870, libimobiledevice/trunk/PKGBUILD)
  libimobiledevice/repos/staging-x86_64/libplist-2.3.0.diff
    (from rev 476870, libimobiledevice/trunk/libplist-2.3.0.diff)

---------------------+
 PKGBUILD            |   70 ++++++++++++++++++++++++++++++++++++++++++++++++++
 libplist-2.3.0.diff |   32 ++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: libimobiledevice/repos/staging-x86_64/PKGBUILD (from rev 476870, 
libimobiledevice/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2023-05-06 16:59:27 UTC (rev 476871)
@@ -0,0 +1,70 @@
+# Contributor: Tom Gundersen <[email protected]>
+# Contributor: Ionut Biru <[email protected]>
+# Contributor: Gabriel Martinez < reitaka at gmail dot com >
+
+pkgname=libimobiledevice
+pkgver=1.3.0
+pkgrel=8
+pkgdesc="Library that talks the protocols to support iPhone and iPod Touch 
devices on Linux"
+url="https://libimobiledevice.org/";
+arch=(x86_64)
+license=(GPL2 LGPL2.1)
+depends=(
+  gnutls
+  libgcrypt
+  libplist
+  libtasn1
+  libusbmuxd
+)
+makedepends=(
+  autoconf-archive
+  cython
+  git
+  python
+  python-setuptools
+)
+provides=(libimobiledevice-1.0.so)
+_commit=15f8652126664e3a4b980e5d1c039b9053ce8566
+source=(
+  "git+https://github.com/libimobiledevice/libimobiledevice#commit=$_commit";
+  libplist-2.3.0.diff
+)
+b2sums=('SKIP'
+        
'136390910a57e70c3ce458ab5c6def4e079b7eb4c2946447102078ca511f8d112caf9460c074ecbb6c8a4f526e0aa50015d2f92acf66dbbb666bd007e361ee5e')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+
+  # Update ac_python_devel.m4 to newer ax_python_devel.m4
+  git cherry-pick -n eea4f1be91
+
+  # Compatibility with libplist 2.3.0
+  git apply -3 ../libplist-2.3.0.diff
+
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() (
+  cd $pkgname
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+    --disable-openssl
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+)
+
+check() {
+  cd $pkgname
+  make check
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}
+
+# vim:set sw=2 sts=-1 et:

Copied: libimobiledevice/repos/staging-x86_64/libplist-2.3.0.diff (from rev 
476870, libimobiledevice/trunk/libplist-2.3.0.diff)
===================================================================
--- staging-x86_64/libplist-2.3.0.diff                          (rev 0)
+++ staging-x86_64/libplist-2.3.0.diff  2023-05-06 16:59:27 UTC (rev 476871)
@@ -0,0 +1,32 @@
+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);
+ 

Reply via email to