Files
chromebrew/packages/libxcrypt.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

37 lines
1.2 KiB
Ruby

require 'package'
class Libxcrypt < Package
description 'Modern library for one-way hashing of passwords'
homepage 'https://github.com/besser82/libxcrypt/'
version '4.4.18'
license 'LGPL-2.1+, public-domain, BSD and BSD-2'
compatibility 'all'
source_url "https://github.com/besser82/libxcrypt/archive/v#{version}.tar.gz"
source_sha256 '3801f0263a8596b15ec466343fc1fdc4ad4ec7416c51e038a3528fd47f3be01a'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '5be9496841308529004f767f689f9d0ad681700e12db213f2f94742aec99e1d3',
armv7l: '5be9496841308529004f767f689f9d0ad681700e12db213f2f94742aec99e1d3',
i686: 'c06e88bb39f787c294dbbdb5497887a6b58b24d586965ece1d9915dd3cd82e0c',
x86_64: '36f1ed8e9d2889c62c2eb4f9d98808fcae9400d376e1b6cd8367550998a8188c'
})
def self.build
system 'autoreconf -fi'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--disable-static \
--enable-hashes=strong,glibc \
--enable-obsolete-api=no \
--disable-failure-tokens"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end