Commit 506555a2 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[New Package] aha (#5196)

* [New Package] aha

* Make ${CREW_PREFIX} work
parent c4d3743b
require 'package'
class Aha < Package
description 'ANSI HTML Adapter'
homepage 'https://github.com/theZiz/aha'
version '0.5.1'
compatibility 'all'
source_url 'https://github.com/theZiz/aha/archive/0.5.1.tar.gz'
source_sha256 '6aea13487f6b5c3e453a447a67345f8095282f5acd97344466816b05ebd0b3b1'
def self.patch
system "sed -i 's:-Wextra:-Wextra -pipe -flto -O2:g' Makefile"
system "sed -i 's:PREFIX?=/usr/local:PREFIX?=#{CREW_PREFIX}:g' Makefile"
end
def self.build
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
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