mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
* Make basic crew-profile-base package * Use crew consts * Upgrade to 0.0.2-pre2 * Convert aa* to cf* * Docbook * aa* to dz* * docbook-xsl * through fz* and fix environment variables * through mz* * through pz* * through zz* * fix crew-profile-base * upgrade crew-profile-base * major crew-profile-base changes * Upgrade crew-profile-base and fix xdg-base * fix sha256sum * Remove stale files * pkgsrc and sommelier * Add crew-profile-base to core packages and ready for merging * Bump versions * prevent conflicts with #5494 * fix sha256sum * fix fop * profile.d is not ours * fix bash * Upgrade crew-profile-base to 0.0.1-pre6 and fix bash * Remove self-referencing comment * Add binaries, fix rust, fix #{@ver} * move compatibility line * add core mandb deps back * File.exists? => File.exist? * deduplicate @env * update packages * Fix gdk_pixbug source url * Add binaries, use rubocop style fixes * Update cf from 6.36.1-1 to 6.53.0 * fix sl * fix depot tools * remove apulse since it conflicts with pulseaudio. * refactor crew_profile_base * first tranche of builds * go * add cf * hunspell * transmission * clean up dependency & env situation for gdk_pixbuf * fix gettext * fix nano * fix intel-media-driver * add zziplib for texlive * fix texlive * split fuse for flatpak * fix flatpak * delete rack (broken and unmaintained) * fix packer completion * modify and fix sl * fix s * fix stressng * fix stack * Add TMPDIR * Remove TMPDIR from build files * Fix aws2 version * Go: remove extraneous dependency * hunspell_fr_fr: use french in description * intel media driver: remove case x86_64 * aws2: quickfix * everything but texlive * texlive * fix stressng * Delete pkgsrc.rb * add back pkgsrc Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Ed Reel <edreel@gmail.com> Co-authored-by: satmandu <satadru@umich.edu>
38 lines
1.3 KiB
Ruby
38 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class S < Package
|
|
description 'Open a web search in your terminal.'
|
|
homepage 'https://github.com/zquestz/s/'
|
|
@_ver = '0.5.15'
|
|
version @_ver
|
|
license 'GPL-3+'
|
|
compatibility 'all'
|
|
case ARCH
|
|
when 'aarch64', 'armv7l'
|
|
source_url "https://github.com/zquestz/s/releases/download/v#{@_ver}/s-linux_arm.zip"
|
|
source_sha256 'ddffb211f117395a736f679a8a96cc726ac46c50fdfe1a6e2c4bb4494b970cd0'
|
|
when 'i686'
|
|
source_url "https://github.com/zquestz/s/releases/download/v#{@_ver}/s-linux_386.zip"
|
|
source_sha256 '8724b0ea6ec0e8abedcdc87f2efccd12a848ff1267149f8ca14b46251649cffc'
|
|
when 'x86_64'
|
|
source_url "https://github.com/zquestz/s/releases/download/v#{@_ver}/s-linux_amd64.zip"
|
|
source_sha256 '38c29001936f1758159cc935b3ab97d1dee75c35ceacd8bd5ada3837b306192f'
|
|
end
|
|
|
|
depends_on 'unzip' => :build
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/s/"
|
|
FileUtils.cp "autocomplete/s-completion.bash", "#{CREW_DEST_PREFIX}/share/s/"
|
|
FileUtils.cp 's', "#{CREW_DEST_PREFIX}/bin"
|
|
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/bash.d/"
|
|
@env = <<~EOF
|
|
# s bash completion
|
|
source #{CREW_PREFIX}/share/s/s-completion.bash
|
|
EOF
|
|
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/s", @env)
|
|
end
|
|
end
|