Files
chromebrew/packages/libpth.rb

37 lines
1.5 KiB
Ruby

require 'package'
class Libpth < Package
description 'Pth is a very portable POSIX/ANSI-C based library for Unix platforms'
homepage 'https://www.gnu.org/software/pth/'
version '2.0.7'
license 'LGPL-2.1+'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/pth/pth-2.0.7.tar.gz'
source_sha256 '72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpth/2.0.7_armv7l/libpth-2.0.7-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpth/2.0.7_armv7l/libpth-2.0.7-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpth/2.0.7_i686/libpth-2.0.7-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpth/2.0.7_x86_64/libpth-2.0.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '6df029d8c9a59cc6bfba3308d362589b5d32e72fecc282dfb6e05e67fac6c387',
armv7l: '6df029d8c9a59cc6bfba3308d362589b5d32e72fecc282dfb6e05e67fac6c387',
i686: '49344c2b2eafe8f4490b94bed951b8e7eb31bb45c358d21f531fcd9741e412c6',
x86_64: 'b82687dc8d4525dd8deee18576ae9ffbb149c2a7a378de68db60fd12de3f6b12',
})
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--enable-optimize'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end