Files
chromebrew/packages/scite.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

46 lines
1.4 KiB
Ruby

require 'package'
class Scite < Package
description 'A free source code editing component for Win32, GTK+, and OS X'
homepage 'https://www.scintilla.org/'
version '4.2.0'
license 'HPND and MIT'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://www.scintilla.org/scite420.tgz'
source_sha256 '2e0b95842bbc875a9224416fad3a9179ec329b3af2ca1abdd8e64c008068bb99'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '44c3738e5f6d241e74a0b2dc30080f73643cf170fcf93b8167a42f85943e4554',
armv7l: '44c3738e5f6d241e74a0b2dc30080f73643cf170fcf93b8167a42f85943e4554',
x86_64: '1fcbc9d13a7c7bc5b7473631281fdea5302c8e55b88bdb8d25159b70890dfcec'
})
depends_on 'gtk3'
depends_on 'gnome_icon_theme'
depends_on 'hicolor_icon_theme'
depends_on 'shared_mime_info'
depends_on 'sommelier'
def self.build
Dir.chdir 'scintilla/gtk' do
system 'make', 'GTK3=1', "prefix=#{CREW_PREFIX}"
end
Dir.chdir 'scite/gtk' do
system 'make', 'GTK3=1', "prefix=#{CREW_PREFIX}"
end
end
def self.install
Dir.chdir 'scite/gtk' do
system 'make', 'GTK3=1', "prefix=#{CREW_PREFIX}", "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
Dir.chdir "#{CREW_DEST_PREFIX}/bin" do
system 'mv SciTE scite'
end
Dir.chdir "#{CREW_DEST_PREFIX}/share/applications" do
system "sed -i 's,Exec=SciTE,Exec=scite,' SciTE.desktop"
end
end
end