Skip to content

Commit

Permalink
Merge pull request chromebrew#908 from flyingP0tat0/patch-5
Browse files Browse the repository at this point in the history
Add get_iplayer
  • Loading branch information
lyxell authored Jul 25, 2017
2 parents dc36290 + 6038626 commit 98f46c8
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/atomicparsley.rb
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
48 changes: 48 additions & 0 deletions packages/get_iplayer.rb
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

0 comments on commit 98f46c8

Please sign in to comment.