Commit 98f46c80 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #908 from flyingP0tat0/patch-5

Add get_iplayer
parents dc362905 60386265
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
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
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