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>
34 lines
1.5 KiB
Ruby
34 lines
1.5 KiB
Ruby
require 'package'
|
|
|
|
class Libuninum < Package
|
|
description 'This is a library for converting Unicode strings to numbers and numbers to Unicode strings.'
|
|
homepage 'http://billposer.org/Software/libuninum.html'
|
|
version '2.7-0'
|
|
license 'GPL-2, GPL-2+, LGPL-2 and LGPL-2.1'
|
|
compatibility 'all'
|
|
source_url 'https://billposer.org/Software/Downloads/libuninum-2.7.tar.bz2'
|
|
source_sha256 'e704983c3c00e9b76bd836b8b83ce31bfe4eb1752eee8be123cf97c1275076ea'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libuninum/2.7-0_armv7l/libuninum-2.7-0-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libuninum/2.7-0_armv7l/libuninum-2.7-0-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libuninum/2.7-0_i686/libuninum-2.7-0-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libuninum/2.7-0_x86_64/libuninum-2.7-0-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '8cca34b8e60fed8fd5f8506f4b91ababb6343fb89a268a03fb590ebf44f29cef',
|
|
armv7l: '8cca34b8e60fed8fd5f8506f4b91ababb6343fb89a268a03fb590ebf44f29cef',
|
|
i686: '36aad93b00c85623884776b89dab2dde5c7e8ef393b13b9faf4b175ea2787704',
|
|
x86_64: 'f2119fada66d21f242a33068c46267c1f05cdcb517dcbe76ab9476ca556e22cc'
|
|
})
|
|
|
|
def self.build
|
|
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|