mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS * Rename build_extras and install_extras to configure_build_extras and configure_install_extras
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Libtool < Package
|
|
description 'GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.'
|
|
homepage 'https://www.gnu.org/software/libtool/'
|
|
version '2.4.7'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://ftpmirror.gnu.org/libtool/libtool-2.4.7.tar.xz'
|
|
source_sha256 '4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '5b4596b096e34beaabac8011062b977b15fc20da158c9a12288a453c310fdc48',
|
|
armv7l: '5b4596b096e34beaabac8011062b977b15fc20da158c9a12288a453c310fdc48',
|
|
i686: '1b07197ea6683afa881e858adddb9909a52759af6a80a1bfe14a1cd185c58424',
|
|
x86_64: '2d23028648189ae30acb1a18b758aeb9ca3146b29bef4cf1758ab4cfc678c490'
|
|
})
|
|
|
|
depends_on 'm4'
|
|
|
|
def self.build
|
|
system "./configure #{CREW_CONFIGURE_OPTIONS} \
|
|
--enable-ltdl-install"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
|
|
def self.check
|
|
# Some tests fail on arm builds.
|
|
# Link order of deplibs FAILED (link-order2.at:126)
|
|
# static linking flags for programs FAILED (static.at:177)
|
|
# Run tests with low max_cmd_len FAILED (cmdline_wrap.at:48)
|
|
system 'make', 'check'
|
|
end
|
|
end
|