Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions anda/devs/bun/bun-bin.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
%define debug_package %nil
%ifarch x86_64
%ifarch x86_64_v3
%global a x64
%elifarch x86_64
%global a x64-baseline
%elifarch aarch64
%global a aarch64
%endif

Name: bun-bin
Version: 1.2.14
Release: 2%?dist
Release: 3%?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.
Expand Down
4 changes: 4 additions & 0 deletions anda/devs/bun/pre.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if sh("ps | grep anda | wc -l", #{ "stdout": "piped" }).ctx.stdout[0] == "1" {
print("pre: building for x86_64_v3 first");
sh("../anda/target/debug/anda build devs/bun -rrpmbuild --rpm-target x86_64_v3", #{});
}