Commit be165fdf authored by Ed Reel's avatar Ed Reel

Add wkhtmltox package

parent 2b8ccd80
require 'package'
class Wkhtmltox < Package
description 'Convert HTML to PDF using Webkit (QtWebKit)'
homepage 'https://wkhtmltopdf.org/'
version '0.12.4'
case ARCH
when 'i686'
source_url 'https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-i386.tar.xz'
source_sha256 '4087b264ec860ab0b0f9b7299ef733fc51e8e39f42047a06724b7450016ab9b8'
when 'x86_64'
source_url 'https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz'
source_sha256 '049b2cdec9a8254f0ef8ac273afaf54f7e25459a273e27189591edc7d7cf29db'
end
binary_url ({
})
binary_sha256 ({
})
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}"
system "cp -r bin/ #{CREW_DEST_PREFIX}"
system "cp -r lib/ #{CREW_DEST_PREFIX}"
system "cp -r share/ #{CREW_DEST_PREFIX}"
system "cp -r include/ #{CREW_DEST_PREFIX}"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment