mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 09:52:18 +00:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2afdb2c1ce | |||
| 12f4a78656 | |||
| 6799edc3f8 | |||
| 72dc46ac72 | |||
| d1de55d45b | |||
| e02f68b829 | |||
| 227713f306 | |||
| 5d4d17e39e | |||
| fa454a3e5b | |||
| 9afd486e03 | |||
| 36c92acb08 | |||
| ae69c6c41d | |||
| 8ec9f15ea0 | |||
| 271ca80bce | |||
| 8ea9d4fcdb | |||
| 159e9ac0b7 | |||
| 946a384916 | |||
| feeb408e70 |
@@ -0,0 +1,5 @@
|
|||||||
|
project pkg {
|
||||||
|
rpm {
|
||||||
|
spec = "bruno.spec"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
%!/usr/bin/sh
|
||||||
|
ELECTRON_IS_DEV=0 exec electron /usr/lib64/bruno "\$@"
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
Name: bruno
|
||||||
|
Version: 2.5.0
|
||||||
|
Release: 1%?dist
|
||||||
|
Summary: Opensource API Client for Exploring and Testing APIs
|
||||||
|
License: MIT
|
||||||
|
URL: https://www.usebruno.com
|
||||||
|
Source0: https://github.com/usebruno/bruno/archive/refs/tags/v%version.tar.gz
|
||||||
|
Source1: com.usebruno.app.Bruno.desktop
|
||||||
|
Source2: bruno.sh
|
||||||
|
Requires: electron alsa-lib
|
||||||
|
BuildRequires: asar electron pnpm gcc gcc-c++
|
||||||
|
BuildRequires: pkgconfig(pixman-1)
|
||||||
|
BuildRequires: pkgconfig(cairo)
|
||||||
|
BuildRequires: pkgconfig(pangocairo)
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3dist(setuptools)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Bruno is a new and innovative API client, aimed at revolutionizing the status quo represented by Postman and similar tools out there.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
curl -fsSL https://bun.sh/install | bash
|
||||||
|
|
||||||
|
# ref aur
|
||||||
|
# disabling husky however I can since I'm not in a git repository
|
||||||
|
sed -i -e 's/"husky":.*//g' -e 's/"husky install"/"true"/g' package.json
|
||||||
|
|
||||||
|
%build
|
||||||
|
export NODE_ENV=production
|
||||||
|
export NODE_OPTIONS=--openssl-legacy-provider
|
||||||
|
export PATH="$PATH:$HOME/.bun/bin/"
|
||||||
|
|
||||||
|
|
||||||
|
bun i
|
||||||
|
bun run build:bruno-query
|
||||||
|
bun run build:bruno-common
|
||||||
|
bun run build:graphql-docs
|
||||||
|
bun run build:web
|
||||||
|
|
||||||
|
electronDist="%_libdir/electron"
|
||||||
|
electronVer="$(cat ${electronDist}/version)"
|
||||||
|
sed -i -e "s~\"dist:linux\":.*~\"dist:linux\": \"electron-builder --linux --x64 --dir --config electron-builder-config.js -c.electronDist=${electronDist} -c.electronVersion=${electronVer}\",~g" packages/bruno-electron/package.json
|
||||||
|
|
||||||
|
bun run build:electron:linux
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %buildroot%_datadir/applications/
|
||||||
|
install -Dm644 %SOURCE1 %buildroot%_datadir/applications/
|
||||||
|
install -Dm755 %SOURCE2 %buildroot%_bindir/bruno
|
||||||
|
|
||||||
|
install -d %buildroot%_libdir/bruno
|
||||||
|
asar e packages/bruno-electron/out/linux-unpacked/resources/app.asar %buildroot%_libdir/bruno/
|
||||||
|
|
||||||
|
for i in 16 24 48 64 128 256 512 1024; do
|
||||||
|
install -Dm644 "packages/bruno-electron/resources/icons/png/${i}x${i}.png" "%buildroot%_iconsdir/hicolor/${i}x${i}/apps/com.usebruno.app.Bruno.png"
|
||||||
|
done
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc readme.md
|
||||||
|
%license license.md
|
||||||
|
%_bindir/bruno/
|
||||||
|
%_libdir/bruno/
|
||||||
|
%_datadir/applications/com.usebruno.app.Bruno.desktop
|
||||||
|
%_iconsdir/hicolor/*/apps/com.usebruno.app.Bruno.png
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Bruno
|
||||||
|
Comment=Opensource API Client for Exploring and Testing APIs
|
||||||
|
Exec=/usr/bin/bruno %u
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Icon=com.usebruno.app.Bruno
|
||||||
|
StartupWMClass=Bruno
|
||||||
|
Categories=Development;
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
rpm.version(gh("usebruno/bruno"));
|
||||||
Reference in New Issue
Block a user