Files
chromebrew/packages/libimobiledevice.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

38 lines
1.3 KiB
Ruby

# Adapted from Arch Linux libimobiledevice PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/libimobiledevice/trunk/PKGBUILD
require 'package'
class Libimobiledevice < Package
description 'Library that talks the protocols to support iPhone and iPod Touch devices on Linux'
homepage 'https://libimobiledevice.org/'
version '1.3.0'
license 'LGPL-2.1'
compatibility 'all'
source_url "https://github.com/libimobiledevice/libimobiledevice/archive/refs/tags/#{version}.tar.gz"
source_sha256 'acbfb73eabee162e64c0d9de207d71c0a5f47c40cd5ad32a5097f734328ce10a'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '7a8a73892ac722226e44a17c810900213aa6c5e66c26ad23b8d30b379d5b7dae',
armv7l: '7a8a73892ac722226e44a17c810900213aa6c5e66c26ad23b8d30b379d5b7dae',
i686: '2580d6ecf627dce6a4dd6018ef3245e7352a95ac2fcd586627188379dc4489fa',
x86_64: '11462fab4814036224fb3078792bad480627ead538309afcd93abfbb85121d65'
})
depends_on 'autoconf_archive' => :build
depends_on 'libgcrypt'
depends_on 'libplist'
depends_on 'libusbmuxd'
def self.build
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "./configure #{CREW_CONFIGURE_OPTIONS} --disable-openssl"
system 'make'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} make install"
end
end