mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* Rename IgnoredPatterns to AllowedPatterns. * Exclude docopt.rb (not our code) from Rubocop * Disable Style/RedundantReturn * Disable Style/MutableConstant * Disable Style/NumericLiterals * Set Layout/IndentationStyle to spaces * Temporarily disable various cops. * Add Rubocop CI via Octocop * Lint tree with rubocop -A -c .rubocop.yml Co-authored-by: Satadru Pramanik <satadru@gmail.com>
42 lines
1.6 KiB
Ruby
42 lines
1.6 KiB
Ruby
require 'package'
|
|
|
|
class Exif < Package
|
|
description 'A small command-line utility to show EXIF information hidden in JPEG files'
|
|
homepage 'https://libexif.github.io/'
|
|
version '0.6.21'
|
|
license 'LGPL-2+'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/libexif/exif/archive/exif-0_6_21-release.tar.gz'
|
|
source_sha256 'f55e125eee6c2a75d367d3b388bcd7bea75dc944fabe8671bb32e889192f4b77'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/exif/0.6.21_armv7l/exif-0.6.21-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/exif/0.6.21_armv7l/exif-0.6.21-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/exif/0.6.21_i686/exif-0.6.21-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/exif/0.6.21_x86_64/exif-0.6.21-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '8f8de193c0571c268e8004876a0365178237107d2e21d44766ef128f204adcb3',
|
|
armv7l: '8f8de193c0571c268e8004876a0365178237107d2e21d44766ef128f204adcb3',
|
|
i686: '66264ec4145cb0ea008eeb7a584dbda2339e1b3f2209e712e5bb8b6e794f3db8',
|
|
x86_64: '5d99ef721aafe110f565698a8ee42d258d89748cbb37073175781af7ec7cc617'
|
|
})
|
|
|
|
depends_on 'libexif'
|
|
depends_on 'popt'
|
|
|
|
def self.build
|
|
system 'autoreconf -i -f'
|
|
system "sed -i '69,70d' po/Makefile.in.in"
|
|
system './configure',
|
|
"--prefix=#{CREW_PREFIX}",
|
|
"--libdir=#{CREW_LIB_PREFIX}",
|
|
'--disable-maintainer-mode'
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|