mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS * Rename build_extras and install_extras to configure_build_extras and configure_install_extras
33 lines
1.0 KiB
Ruby
33 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Npth < Package
|
|
description 'nPth is a library to provide the GNU Pth API and thus a non-preemptive threads implementation.'
|
|
homepage 'https://www.gnupg.org/related_software/npth/index.html'
|
|
version '1.6'
|
|
license 'LGPL-2.1+'
|
|
compatibility 'all'
|
|
source_url 'https://www.gnupg.org/ftp/gcrypt/npth/npth-1.6.tar.bz2'
|
|
source_sha256 '1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1'
|
|
binary_compression 'tpxz'
|
|
|
|
binary_sha256({
|
|
aarch64: '0b1965d806030039b4ae11b025417bca7c21ad3959eca638e45cd4cd7d55f4ba',
|
|
armv7l: '0b1965d806030039b4ae11b025417bca7c21ad3959eca638e45cd4cd7d55f4ba',
|
|
i686: '1681a48ed502d65d3cb9f6ff8979eb009f8b83a94571b5077cd1e0744a75b5d8',
|
|
x86_64: '1511822e81d1bf23d0c293e602d5cfa55cf4c00718f477e3b9344e4c27241cde'
|
|
})
|
|
|
|
def self.build
|
|
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_CONFIGURE_OPTIONS}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
end
|