mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Adjust gnu sources to not use ftpmirror. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * ed => 1.22.5 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Mark packages from successful builds as automatically buildable. * gnu_avoid_ftpmirror: Package File Update Run on linux/386 container. * gnu_avoid_ftpmirror: Package File Update Run on linux/amd64 container. * gnu_avoid_ftpmirror: Package File Update Run on linux/arm/v7 container. * Truncate PR Title length as per GitHub requirements. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust gnuastro compatibility. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Ed Reel <edreel@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
39 lines
1.1 KiB
Ruby
39 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Electric < Package
|
|
description 'Electric is a computer-aided design system for electrical circuits.'
|
|
homepage 'https://www.staticfreesoft.com/'
|
|
version '9.08'
|
|
license 'GPL-3'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url "https://ftp.gnu.org/gnu/electric/electricBinary-#{version}.jar"
|
|
source_sha256 '7a8fbe5fac60989659a5197eabb4a1dac53a675adfa12c26c98a7d1089aeeb97'
|
|
|
|
depends_on 'openjdk17'
|
|
depends_on 'sommelier' => :logical
|
|
|
|
no_compile_needed
|
|
|
|
def self.build
|
|
File.write 'electric.sh', <<~EOF
|
|
#!/bin/bash
|
|
java -jar #{CREW_PREFIX}/share/electric/electric.jar "$@"
|
|
EOF
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/electric"
|
|
FileUtils.mv "electricBinary-#{version}.jar", "#{CREW_DEST_PREFIX}/share/electric/electric.jar"
|
|
FileUtils.install 'electric.sh', "#{CREW_DEST_PREFIX}/bin/electric", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'electric' to get started.\n"
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{HOME}/electric.log")
|
|
end
|
|
end
|