Files
chromebrew/packages/projectlibre.rb
Maximilian Downey Twiss eb14c41653 Remove compatibility from packages with incompatible dependencies (#9458)
* Remove i686 compatibility from packages with dependencies incompatible with i686

* Remove armv7l compatibility from packages with dependencies incompatible with arvm7l

* Abort builds/installs if the package has incompatible dependencies
2024-03-11 13:09:12 -04:00

40 lines
1.3 KiB
Ruby

require 'package'
class Projectlibre < Package
description 'ProjectLibre is project management software, the leading alternative to Microsoft Project.'
homepage 'https://www.projectlibre.com/'
version '1.9.1'
license 'CPAL-1.0'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://downloads.sourceforge.net/project/projectlibre/ProjectLibre/1.9.1/projectlibre-1.9.1.tar.gz'
source_sha256 '65ca96728eb5a31c3e23eb43181dde367d785a86b82f330ca52bc7b51c74a5bb'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'f7df4bbee8466e6cfffd9c4e22f5982c1762abeebf699732ea114b9fa9daf5a6',
armv7l: 'f7df4bbee8466e6cfffd9c4e22f5982c1762abeebf699732ea114b9fa9daf5a6',
x86_64: '004464a19153c20ace590a7077cbadf3be558b9a107fa581346507d98cfd2df8'
})
depends_on 'jdk8'
depends_on 'sommelier'
def self.install
FileUtils.rm 'projectlibre.bat'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/projectlibre"
FileUtils.cp_r Dir.glob('.'), "#{CREW_DEST_PREFIX}/share/projectlibre"
system "cat << 'EOF' > projectlibre
#!/bin/bash
cd #{CREW_PREFIX}/share/projectlibre
./projectlibre.sh
EOF"
system "install -Dm755 projectlibre #{CREW_DEST_PREFIX}/bin/projectlibre"
end
def self.postinstall
puts
puts "To get started, execute 'projectlibre'".lightblue
puts
end
end