mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Add binary_compression value to each package * Remove binary_url values and arrays * Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
27 lines
903 B
Ruby
27 lines
903 B
Ruby
require 'package'
|
|
|
|
class Pandoc < Package
|
|
description 'Universal markup converter'
|
|
homepage 'https://github.com/jgm/pandoc/'
|
|
version '2.7.3'
|
|
license 'GPL-2+'
|
|
compatibility 'all'
|
|
binary_compression 'tar.xz'
|
|
|
|
source_url 'https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-linux.tar.gz'
|
|
source_sha256 'eb775fd42ec50329004d00f0c9b13076e707cdd44745517c8ce2581fb8abdb75'
|
|
|
|
binary_sha256({
|
|
aarch64: '2bdd58244cb9044771e1ef36adcb9749c56c045c8f040c3e199e6bbb047a78f5',
|
|
armv7l: '2bdd58244cb9044771e1ef36adcb9749c56c045c8f040c3e199e6bbb047a78f5',
|
|
i686: '7dd73da7ef9bcb0f9a2380a7e72b3906101bde0e99091483aeaa047b8e6c8808',
|
|
x86_64: '7a6382e0dacaea978eb348feebaf02d8b58addc8cc14db179b68dcf552b7e260'
|
|
})
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p CREW_DEST_PREFIX
|
|
system "cp -r bin/ #{CREW_DEST_PREFIX}"
|
|
system "cp -r share/ #{CREW_DEST_PREFIX}"
|
|
end
|
|
end
|