mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
dr
This commit is contained in:
@@ -4,19 +4,18 @@ require 'package'
|
||||
|
||||
class Dr < Package
|
||||
description 'A simple ed-like devRant client'
|
||||
homepage 'https://github.com/Ewpratten/dr'
|
||||
version '2.0'
|
||||
homepage 'https://github.com/Ewpratten/dr/'
|
||||
version '2.0-1'
|
||||
license 'MIT'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/Ewpratten/dr/archive/2.0-cros.tar.gz'
|
||||
source_sha256 '0ab9003c23d74d1ca8b0cfaf33e7db5e5b908d3448c87c4c0a83c9bf77a8ac23'
|
||||
source_url 'SKIP'
|
||||
|
||||
depends_on 'py3_requests'
|
||||
depends_on 'py3_setuptools' => :build
|
||||
|
||||
def self.install
|
||||
system 'curl -#Lo dr/dr https://github.com/Ewpratten/dr/releases/download/2.0-cros/dr'
|
||||
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('dr/dr') ) == '4e39a28f947ac044e28349fb10ffb423100fb00acb0ab819e931d931e3f0b02f'
|
||||
system "install -Dm755 dr/dr #{CREW_DEST_PREFIX}/bin/dr"
|
||||
system "pip3 install . --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} --upgrade --no-cache-dir -r requirements.txt"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user