Files
chromebrew/packages/libimobiledevice.rb
satmandu 839680a0ae nautilus and deps updates (#5505)
* nautilus and deps updates

* add license

* Update exempi.rb

* add license

* add license

* add license back

* license added

* cleanup

* Update libimobiledevice.rb

* add license

* add license

* add license

* Remove duplicate deps.

* rebuild

* remove extra quoting

* rebuild

* fix quoted build variables

* Add non-core runtime deps to package files

* remove core deps
2021-03-30 17:27:57 -05:00

43 lines
1.7 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_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libimobiledevice-1.3.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libimobiledevice-1.3.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libimobiledevice-1.3.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libimobiledevice-1.3.0-chromeos-x86_64.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_OPTIONS} --disable-openssl"
system 'make'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} make install"
end
end