mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* upgrade libuv * upgrade librhash * upgrade cmake * fix librhash, switch cmake to use ninja, add binaries for librhash & libuv * Add binaries again, and also add jsoncpp update * Add check back to cmake * fix indent * update build to include official symlink install cmd * use ninja for libuv to avoid broken libraries on non-x86_64 * cmake add x86_64 build * cmake add other builds * add test comments and add test * Add info about failed libuv tests * use samurai with CMake * use samurai with jsoncpp * use samurai with libuv * rebuild armv7l cmake * cmake -> 3.21.4 * update source to 3.22.0 (we can rebuild this after we merge the python 3.10 stuff.) * cmake -> 3.22.1 * update binaries * new binaries for jsoncpp Co-authored-by: Satadru Pramanik <satadru@gmail.com>
49 lines
1.9 KiB
Ruby
49 lines
1.9 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/'
|
|
@_ver = '1.4.2'
|
|
version @_ver
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/rhash/RHash.git'
|
|
git_hashtag "v#{@_ver}"
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/librhash/1.4.2_armv7l/librhash-1.4.2-chromeos-armv7l.tpxz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/librhash/1.4.2_armv7l/librhash-1.4.2-chromeos-armv7l.tpxz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/librhash/1.4.2_i686/librhash-1.4.2-chromeos-i686.tpxz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/librhash/1.4.2_x86_64/librhash-1.4.2-chromeos-x86_64.tpxz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '59805811b7e2933f16bd2114d865802ffc42ea025f353c7ae70326443d502a9e',
|
|
armv7l: '59805811b7e2933f16bd2114d865802ffc42ea025f353c7ae70326443d502a9e',
|
|
i686: '32a3acd47df5deb05dc97177438d9ef6d7c0b66940d82e6e9a5206ebec6a6bba',
|
|
x86_64: '60784cf7c9145aaf4c3f98e705ec4c0b2d1d6468957cee41f12f851731431a5a'
|
|
})
|
|
|
|
def self.build
|
|
system "#{CREW_ENV_OPTIONS} ./configure \
|
|
--prefix=#{CREW_PREFIX} \
|
|
--libdir=#{CREW_LIB_PREFIX}\
|
|
--cc=#{CREW_TGT}-gcc \
|
|
--ar=#{CREW_TGT}-gcc-ar \
|
|
--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'
|
|
end
|
|
end
|