Files
chromebrew/packages/libxcrypt.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -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_CONFIGURE_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