Files
chromebrew/packages/libzip.rb
satmandu ff818a5214 Enable Testing a PR from its own repo with crew, and other updates. (#5624)
* Some updates

* requested changes

* make requested changes

* make CREW_ENV_OPTIONS changes

* ncurses change!

* convert gtk_vnc to new git format

* Initial crew testing modifications

* fix typo

* Avoid error with testing remote already created

* Revert ncurses change. Let's put that in its own dedicated PR.

* formatting changes

* formatting fixes, bump crew version
2021-04-15 17:37:07 -05:00

47 lines
1.6 KiB
Ruby

require 'package'
class Libzip < Package
description 'libzip is a C library for reading, creating, and modifying zip archives.'
homepage 'https://libzip.org/'
version '1.7.3-1'
license 'BSD'
compatibility 'all'
source_url 'https://libzip.org/download/libzip-1.7.3.tar.xz'
source_sha256 'a60473ffdb7b4260c08bfa19c2ccea0438edac11193c3afbbb1f17fbcf6c6132'
binary_url ({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/libzip-1.7.3-1-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/libzip-1.7.3-1-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/libzip-1.7.3-1-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/libzip-1.7.3-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '816fc0aa5940b01c94631f6d4215b2e8990738a51022fe7e7094fa471afd50ff',
armv7l: '816fc0aa5940b01c94631f6d4215b2e8990738a51022fe7e7094fa471afd50ff',
i686: '75cd419eba9935ab1d6580fce78788b1564099f0443ad611de3e236c3b02981a',
x86_64: 'dd16146327e8c8a91d0cdd5b1f2c776657bda33697c2a9e216e6804c115ac06c',
})
depends_on 'bz2'
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "env #{CREW_ENV_OPTIONS} \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
.."
system 'ninja'
end
end
def self.check
system "ninja -C builddir test"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end