Commit dbc54ebe authored by Ed Reel's avatar Ed Reel

Add far package

Add dependencies and run script
parent 4153cda1
require 'package'
class Far < Package
description 'Search and replace operations on file content across multiple files.'
homepage 'http://findandreplace.sourceforge.net'
version '2.0.2'
source_url 'https://prdownloads.sourceforge.net/project/findandreplace/findandreplace/2.0.2/FAR-2.0.2-x.tar.gz'
source_sha256 '0b2c796bdcc088be960f15cb4e348f8af62f74afbdacc188c3c101c2f502204d'
binary_url ({
})
binary_sha256 ({
})
depends_on 'jdk8'
depends_on 'sommelier'
def self.build
system "echo '#!/bin/bash' > far"
system "echo 'cd #{CREW_PREFIX}/share/far' >> far"
system "echo './far.sh' >> far"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/far"
system "cp -r . #{CREW_DEST_PREFIX}/share/far"
system "install -Dm755 far #{CREW_DEST_PREFIX}/bin/far"
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