Files
chromebrew/packages/cryptopp.rb
Satadru Pramanik, DO, MPH, MEng 22d986c981 Py updates, fix env variable for timeout, add option to skip remote updates in build_updates script (#10503)
* Update py3_setuptools

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix Agree timeout env variable, add pip updates, fixup build_updated_packages script and add functionality to skip remote update checks.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add documentation for the --skip command.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle compatibility with commas

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle empty conpatibility.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fixup compatibility sections of package files.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild parted to handle missing binaries, and update build_updated_packages to notice binary_compression and not ask to rebuild if bimaries already exist.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix hash for nconvert.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-19 22:22:33 -05:00

34 lines
1.1 KiB
Ruby

require 'package'
class Cryptopp < Package
description 'Crypto++ Library is a free C++ class library of cryptographic schemes.'
homepage 'https://cryptopp.com/'
version '8.7.0'
license 'public domain'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://cryptopp.com/cryptopp870.zip'
source_sha256 'd0d3a28fcb5a1f6ed66b3adf57ecfaed234a7e194e42be465c2ba70c744538dd'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '5cd4b39d67c76ab8a2b346e4ce6a4e48ee446ee6e72885c67b0880fb39c1fb5c',
armv7l: '5cd4b39d67c76ab8a2b346e4ce6a4e48ee446ee6e72885c67b0880fb39c1fb5c',
x86_64: '3d69dca37750d1ef729ea30ee9e115399eaf256b8c2343985df23fded7608968'
})
depends_on 'unzip' => :build
def self.build
system 'make dynamic'
end
def self.install
system "PREFIX=#{CREW_PREFIX} \
LIBDIR=#{CREW_LIB_PREFIX} \
DESTDIR=#{CREW_DEST_DIR} \
make install-lib"
# License.txt required for binary distribution.
FileUtils.install 'License.txt', "#{CREW_DEST_PREFIX}/include/cryptopp", mode: 0o644
end
end