Files
chromebrew/packages/command_not_found.rb
github-actions[bot] 46d5639699 AutoBuild: update-cmake started at 2025-05-06-15UTC (#11877)
* Cmake 4.0.1 => 4.0.2

* Adjust cmake build options to properly set LIBRARY_PATH.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust cmake build.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust cmake build options.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Remove 'mold -run' usage as that confuses LIBRARY_PATH overrides.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add built packages for linux/386 to update-cmake

* Add built packages for linux/amd64 to update-cmake

* Add built packages for linux/arm/v7 to update-cmake

* Confirm autotools change works with nano update.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add built packages for linux/386 to update-cmake

* Add built packages for linux/amd64 to update-cmake

* Add built packages for linux/arm/v7 to update-cmake

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Ed Reel <edreel@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
2025-05-06 17:40:47 +00:00

34 lines
1.2 KiB
Ruby

require 'package'
class Command_not_found < Package
description 'Show suggestions for non-installed commands'
homepage 'https://github.com/chromebrew/command-not-found-handler'
version '0.1.1'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/chromebrew/command-not-found-handler.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'e3cacd7f1b300ef05dffd49998d438849c008c9aaf54d72305b0a1a7e5569333',
armv7l: 'e3cacd7f1b300ef05dffd49998d438849c008c9aaf54d72305b0a1a7e5569333',
i686: '8fdc2eb291297b6143b9fb6557ac249303cff6bee8da938a26829099f338492f',
x86_64: 'c231721811f8d82f61e7515dfef7ea42e3e990d7c5a31a1c85e4e53de5d12582'
})
depends_on 'glibc' # R
print_source_bashrc
def self.build
system "cc #{CREW_COMMON_FLAGS} command-not-found-handler.c -o command-not-found-handler"
end
def self.install
FileUtils.mkdir_p %W[#{CREW_DEST_PREFIX}/bin #{CREW_DEST_PREFIX}/etc/bash.d]
FileUtils.install 'command-not-found-handler', "#{CREW_DEST_PREFIX}/bin/command-not-found-handler", mode: 0o755
FileUtils.install 'command-not-found.sh', "#{CREW_DEST_PREFIX}/etc/bash.d/03-command-not-found", mode: 0o644
end
end