Files
Raboneko 9b9d1c0d91 bump: anki-bin discord-canary-openasar discord-canary discord-openasar discord-ptb-openasar discord-ptb discord fontviewer komikku nekoray ruffle-nightly elementary-appcenter elementary-camera elementary-capnet-assist elementary-code elementary-files elementary-greeter elementary-icon-theme elementary-notifications elementary-onboarding elementary-photos elementary-screenshot-tool elementary-settings-daemon elementary-shortcut-overlay elementary-sideload elementary-terminal elementary-theme gala granite-7 pantheon-agent-polkit switchboard-plug-about switchboard-plug-applications switchboard-plug-bluetooth switchboard-plug-datetime switchboard-plug-display switchboard-plug-keyboard switchboard-plug-locale switchboard-plug-mouse-touchpad switchboard-plug-networking switchboard-plug-onlineaccounts switchboard-plug-pantheon-shell switchboard-plug-parental-controls switchboard-plug-power switchboard-plug-printers switchboard-plug-security-privacy switchboard-plug-sharing switchboard-plug-sound switchboard-plug-tweaks switchboard-plug-useraccounts switchboard-plug-wacom switchboard wingpanel-applications-menu wingpanel-indicator-power wingpanel-indicator-sound wingpanel xdg-desktop-portal-pantheon lomiri-system-settings lomiri-url-dispatcher bun-bin zed-preview zed maple-fonts heroic-games-launcher inputplumber osu-lazer prismlauncher-qt5 chezmoi golang-github-xyproto-textoutput golang-github-xyproto-vt100 nimble python-pip-system-certs python-pywal16 zig-master-bootstrap libhelium tdlib-nightly sass uutils-coreutils helium-gtk-theme arduino-cli rust-mise electron yt-dlp-git
2025-06-15 14:51:44 +00:00

67 lines
2.0 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%define debug_package %nil
%ifarch x86_64
%global a x64
%elifarch aarch64
%global a aarch64
%endif
Name: bun-bin
Version: 1.2.16
Release: 1%?dist
Summary: Incredibly fast JavaScript runtime, bundler, test runner, and package manager all in one
License: MIT
URL: https://bun.sh
Source0: https://github.com/oven-sh/bun/releases/download/bun-v%version/bun-linux-%a.zip
BuildRequires: unzip
%description
%summary.
%prep
unzip %SOURCE0
%global buildsubdir bun-linux-%a
cd %buildsubdir
cat<<EOF > LICENSE
MIT License
Copyright (c) Jarred Sumner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
EOF
%install
declare -a shells=("zsh" "bash" "fish")
for s in "${shells[@]}"; do
SHELL=$s ./bun completions > bun.$s
done
install -Dpm755 bun -t %buildroot%_bindir
install -Dm644 bun.zsh %buildroot%zsh_completions_dir/_bun
install -Dm644 bun.bash -t %buildroot%bash_completions_dir
install -Dm644 bun.fish -t %buildroot%fish_completions_dir
ln -s bun %buildroot%_bindir/bunx
%files
%license LICENSE
%_bindir/bun
%_bindir/bunx
%bash_completions_dir/bun.bash
%fish_completions_dir/bun.fish
%zsh_completions_dir/_bun