mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Add genstats package
Add pre-built binaries
This commit is contained in:
31
packages/genstats.rb
Normal file
31
packages/genstats.rb
Normal file
@@ -0,0 +1,31 @@
|
||||
require 'package'
|
||||
|
||||
class Genstats < Package
|
||||
description 'genstats is a general statistics generator.'
|
||||
homepage 'https://www.vanheusden.com/genstats/'
|
||||
version '1.2'
|
||||
source_url 'https://www.vanheusden.com/genstats/genstats-1.2.tgz'
|
||||
source_sha256 'f0fb9f29750cdaa85dba648709110c0bc80988dd6a98dd18a53169473aaa6ad3'
|
||||
|
||||
binary_url ({
|
||||
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/genstats-1.2-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/genstats-1.2-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://dl.bintray.com/chromebrew/chromebrew/genstats-1.2-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/genstats-1.2-chromeos-x86_64.tar.xz',
|
||||
})
|
||||
binary_sha256 ({
|
||||
aarch64: 'de63231c25a96d3941458ccaeff027d4183570ab7734948159ba24bae6df54f9',
|
||||
armv7l: 'de63231c25a96d3941458ccaeff027d4183570ab7734948159ba24bae6df54f9',
|
||||
i686: 'e7db2eb7b5c59b2c36454a45fdb5bf5a26b69cc1a5ec54fb224fbcde68e376ad',
|
||||
x86_64: 'f138991b7ce736c6b9728ed41acd8b52bb09c133cfea78bdce3b01388323cdae',
|
||||
})
|
||||
|
||||
def self.build
|
||||
system 'make'
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "install -Dm755 genstats #{CREW_DEST_PREFIX}/bin/genstats"
|
||||
system "install -Dm644 genstats.1 #{CREW_DEST_PREFIX}/share/man/man1/genstats.1"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user