mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -05:00
* libmbedtls => 4.0 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add librhash compatibility symlink to keep cmake from breaking. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add py3_jsonschema and add as dep to libmbedtls. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add py3_attrs build dep to libmbedtls. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add -Wno-dev to CMAKE_OPTIONS. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Do not cache git repos when in GitHub Actions. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add more python packages Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add py3_jsonschema_specifications. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add builds for py3_pygments Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add py3_jinja2 dep to mbedtls build Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Disable tests. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust rubocop reinstalls during builds. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update i686 manifest Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add armv7l manifest Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add x86_64 filelists. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Use array in superclass check. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
47 lines
1.5 KiB
Ruby
47 lines
1.5 KiB
Ruby
require 'package'
|
|
|
|
class Librhash < Package
|
|
description 'RHash is a console utility for computing and verifying hash sums of files.'
|
|
homepage 'http://rhash.anz.ru/'
|
|
version '1.4.6-1'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/rhash/RHash.git'
|
|
git_hashtag "v#{version.split('-').first}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '88216436ff14c06c624d554fb9a8a774880ee4955b56a4fa211fb12be013b62d',
|
|
armv7l: '88216436ff14c06c624d554fb9a8a774880ee4955b56a4fa211fb12be013b62d',
|
|
i686: '4154b377ccdc58559c555699901a5f9d3d27afce227d1a45e264f4f3354774d9',
|
|
x86_64: '13bb19ecdaee1f9aa862d4ba32178a914b3fc54d668f52674dd60683f3f89630'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'openssl' # R
|
|
|
|
def self.build
|
|
system "./configure \
|
|
--prefix=#{CREW_PREFIX} \
|
|
--libdir=#{CREW_LIB_PREFIX}\
|
|
--enable-gettext \
|
|
--enable-openssl \
|
|
--extra-cflags='#{CREW_COMMON_FLAGS}'"
|
|
system 'make'
|
|
end
|
|
|
|
def self.check
|
|
system 'make check'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-lib-headers'
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-pkg-config'
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-lib-so-link'
|
|
# Needed for cmake.
|
|
FileUtils.ln_s "#{CREW_LIB_PREFIX}/librhash.so.1", "#{CREW_DEST_LIB_PREFIX}/librhash.so.0"
|
|
end
|
|
end
|