forked from chromebrew/chromebrew
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request chromebrew#908 from flyingP0tat0/patch-5
Add get_iplayer
- Loading branch information
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
require 'package' | ||
|
||
class Atomicparsley < Package | ||
description 'AtomicParsley is a lightweight command line program for reading, parsing and setting metadata into MPEG-4 files, in particular, iTunes-style metadata.' | ||
homepage 'https://github.com/wez/atomicparsley' | ||
version '0.9.6' | ||
source_url 'https://bitbucket.org/wez/atomicparsley/get/0.9.6.tar.gz' | ||
source_sha256 '8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab' | ||
|
||
depends_on 'autoconf' | ||
depends_on 'automake' | ||
depends_on 'zlibpkg' | ||
|
||
def self.build | ||
system "./autogen.sh" | ||
system "./configure" | ||
system "make" | ||
end | ||
|
||
def self.install | ||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
require 'package' | ||
|
||
class Get_iplayer < Package | ||
description 'A utility for downloading TV and radio programmes from BBC iPlayer' | ||
homepage 'https://github.com/get-iplayer/get_iplayer' | ||
version '3.01' | ||
source_url 'https://github.com/get-iplayer/get_iplayer/archive/v3.01.tar.gz' | ||
source_sha256 '0e1e16f3706efa98893e33b1602cc00bb3d8e22e269bfc5a1a078559e4c21ce6' | ||
|
||
depends_on 'perl' | ||
depends_on 'ffmpeg' | ||
depends_on 'atomicparsley' | ||
depends_on 'libxml2' | ||
depends_on 'zlibpkg' | ||
|
||
def self.build | ||
system "wget http://search.cpan.org/CPAN/authors/id/W/WI/WIMV/Math-LP-0.03.tar.gz" | ||
system "tar xf Math-LP-0.03.tar.gz" | ||
Dir.chdir "Math-LP-0.03" do | ||
system "perl Makefile.PL" | ||
system "make" | ||
system "make install" | ||
system "make DESTIDR=#{CREW_DEST_DIR} install" | ||
end | ||
|
||
system "cpanm JSON::PP --force" | ||
system "cpanm LWP --force" | ||
system "cpanm LWP::Protocol::https --force" | ||
system "cpanm Mojolicious --force" | ||
system "cpanm XML::Simple --force" | ||
|
||
system "wget http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0129.tar.gz" | ||
system "tar xf XML-LibXML-2.0129.tar.gz" | ||
Dir.chdir "XML-LibXML-2.0129" do | ||
system "perl Makefile.PL" | ||
system "make" | ||
system "make install" | ||
system "make DESTIDR=#{CREW_DEST_DIR} install" | ||
end | ||
|
||
system "cpanm CGI --force" | ||
end | ||
|
||
def self.install | ||
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin" | ||
system "cp get_iplayer #{CREW_DEST_DIR}/usr/local/bin/" | ||
end | ||
end |