Commit b8c4701b authored by Ed Reel's avatar Ed Reel Committed by GitHub

Add codelobster package (#5894)

parent 021a1a0e
......@@ -100,6 +100,7 @@ Latest Packages
| Name | Description | Date Added |
|:---|:---|:---|
| codelobster | Free cross-platform IDE for PHP/HTML/CSS/JavaScript development | 2021-06-23 |
| ltrace | ltrace intercepts and records dynamic library calls which are called by an executed process and the signals received by that process. | 2021-06-22 |
| exodus | Exodus is a desktop crypto wallet | 2021-06-21 |
| snowflake | Snowflake (aka Muon) is a graphical SSH client. | 2021-06-19 |
......@@ -109,7 +110,6 @@ Latest Packages
| pdfchain | PDF Chain is a graphical user interface for the PDF Toolkit (PDFtk). | 2021-06-01 |
| pdftk | PDFtk is a simple tool for doing everyday things with PDF documents. | 2021-05-31 |
| podofo | A PDF parsing, modification and creation library. | 2021-05-27 |
| gcloud | Command-line interface for Google Cloud Platform products and services | 2021-05-23 |
Chat with us!
-------------
......
require 'package'
class Codelobster < Package
description 'Free cross-platform IDE for PHP/HTML/CSS/JavaScript development'
homepage 'https://www.codelobster.com/'
version '1.11.1'
license 'Shareware'
compatibility 'x86_64'
source_url 'https://codelobsteride.com/download/codelobsteride-1.11.1_amd64.deb'
source_sha256 '7772c87bfda497caaf48ce92ad263a57e537f898fc307a213159d73f9b95e28f'
depends_on 'libcurl'
depends_on 'sommelier'
binary_url({
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/codelobster/1.11.1_x86_64/codelobster-1.11.1-chromeos-x86_64.tpxz'
})
binary_sha256({
x86_64: 'bb07382b79b0c7a2a11fb35f2364e21497623362f8ef1a21fac0dbda15a5b6d8'
})
def self.preflight
abort 'Please remove qtbase before installing.'.lightred if File.exist? "#{CREW_LIB_PREFIX}/libQt5Core.so.5"
free_space = `echo $(($(stat -f --format="%a*%S" .)))`.chomp.to_i
abort 'Not enough free disk space. You need at least 1.2 GB to install.'.lightred if free_space < 1288490188
end
def self.patch
system "sed -i 's,/opt/,#{CREW_PREFIX}/share/,' usr/bin/codelobster"
end
def self.install
FileUtils.mkdir_p CREW_DEST_PREFIX
FileUtils.mv 'usr/bin', CREW_DEST_PREFIX
FileUtils.mv 'usr/share', CREW_DEST_PREFIX
FileUtils.mv 'opt/codelobsteride', "#{CREW_DEST_PREFIX}/share"
end
def self.postinstall
puts "\nType 'codelobster' to get started.\n".lightblue
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