Commit 62911ee1 authored by Casey Strouse's avatar Casey Strouse

Add unrar (5.4.5) package

The UnRar package contains a RAR extraction utility used for extracting
files from RAR archives. RAR archives are usually created with WinRAR,
primarily in a Windows environment.

Tested as working on Samsung XE50013-K01US. No test suite exists for
unrar.
parent c44dd0c6
require 'package'
class Unrar < Package
version '5.4.5'
source_url 'http://www.rarlab.com/rar/unrarsrc-5.4.5.tar.gz'
source_sha1 '1590aec535792def68710dad7b73d5522e50c971'
def self.build
system "sed -i '145s,$,/libunrar.so,' makefile" # fix naming mistake
system "sed -i '145s,install,install -D,' makefile" # create directory
system "make", "all"
system "make", "lib"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-lib"
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