Commit cd81d0c8 authored by Ed Reel's avatar Ed Reel

Add handbrake package

Add pre-built binaries
parent 2659eb3f
require 'package'
class Handbrake < Package
description 'HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs.'
homepage 'https://handbrake.fr/'
version '1.3.3'
compatibility 'x86_64'
case ARCH
when 'x86_64'
source_url 'https://github.com/HandBrake/HandBrake/releases/download/1.3.3/HandBrake-1.3.3-source.tar.bz2'
source_sha256 '218a37d95f48b5e7cf285363d3ab16c314d97627a7a710cab3758902ae877f85'
depends_on 'gtk3'
depends_on 'ffmpeg'
depends_on 'jansson'
depends_on 'nasm' => :build
depends_on 'numactl'
depends_on 'sommelier'
end
binary_url ({
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/handbrake-1.3.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
x86_64: '0d18c1ba42efce8b8566ac0752cb46cc8e87ba422b5729bcd6558cd1d7e4c5e1',
})
def self.patch
system "for f in \$(find -name '*.*'); do sed -i 's,/usr/include/libxml2,#{CREW_PREFIX}/include/libxml2,g' \$f; done"
end
def self.build
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp"
system "./configure --prefix=#{CREW_PREFIX} --enable-x265 --enable-numa --enable-fdk-aac --harden"
Dir.chdir 'build' do
system 'make'
end
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
def self.postinstall
puts
puts "To get started, type 'ghb'.".lightblue
puts
puts "Type 'HandBrakeCLI' for the command line.".lightblue
puts
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