Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
d4849d91
Commit
d4849d91
authored
Jul 06, 2020
by
Casey Strouse
Committed by
GitHub
Jul 06, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4158 from uberhacker/add-handbrake-package
Add handbrake package
parents
2659eb3f
cd81d0c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
packages/handbrake.rb
packages/handbrake.rb
+52
-0
No files found.
packages/handbrake.rb
0 → 100644
View file @
d4849d91
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment