Commit 9b5f76d4 authored by Ed Reel's avatar Ed Reel Committed by Kazushi (Jam) Marukawa

Add plowshare package

parent f8a761b2
require 'package'
class Plowshare < Package
description 'Command-line tool and engine for managing sharing websites'
homepage 'https://github.com/mcrapet/plowshare'
version '2.1.7'
source_url 'https://github.com/mcrapet/plowshare/archive/v2.1.7.tar.gz'
source_sha256 'c17d0cc1b3323f72b2c1a5b183a9fcef04e8bfc53c9679a4e1523642310d22ad'
depends_on 'recode'
def self.build
system "sed -i 's,PREFIX ?= /usr,PREFIX ?= #{CREW_PREFIX},' Makefile"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#end
# uncomment after PR #1110 is merged
#def self.postinstall
puts
puts "To add command completion for bash, execute the following:".lightblue
puts "echo '# plowdown completion' >> ~/.bashrc".lightblue
puts "echo 'if [ -f /usr/local/share/bash-completion/completions/plowdown ]; then' >> ~/.bashrc".lightblue
puts "echo ' source /usr/local/share/bash-completion/completions/plowdown' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
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