Files
chromebrew/packages/libgit2.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

45 lines
1.6 KiB
Ruby

require 'package'
class Libgit2 < Package
description 'A portable, pure C implementation of the Git core methods'
homepage 'https://libgit2.org/'
@_ver = '1.1.0'
version @_ver
license 'GPL-2-with-linking-exception'
compatibility 'all'
source_url "https://github.com/libgit2/libgit2/releases/download/v#{@_ver}/libgit2-#{@_ver}.tar.gz"
source_sha256 'ad73f845965cfd528e70f654e428073121a3fa0dc23caac81a1b1300277d4dba'
binary_url ({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/libgit2-1.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/libgit2-1.1.0-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/libgit2-1.1.0-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/libgit2-1.1.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '6ace517ea3525066a11071ed20e02eda6862bd944ceaf4f704c2f28b5f0bc6ac',
armv7l: '6ace517ea3525066a11071ed20e02eda6862bd944ceaf4f704c2f28b5f0bc6ac',
i686: '560685b52825f1bd4c3e6e45b328dec6a68f31d4d8c91ea2129626c0a7b39e9d',
x86_64: 'a12810a16d4a054a1a7d05925743562bf28e2b6e5f1c5f0db22f82a87208f7e9',
})
depends_on 'python3'
depends_on 'libssh2'
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.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end