From 41b32717bb97e027149fd1d5117c52f250aa1946 Mon Sep 17 00:00:00 2001 From: Fabien JUIF Date: Tue, 15 Apr 2025 14:12:04 +0200 Subject: [PATCH] New package: bruno-desktop --- srcpkgs/bruno/files/bruno.desktop | 7 +++++ srcpkgs/bruno/template | 43 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 srcpkgs/bruno/files/bruno.desktop create mode 100644 srcpkgs/bruno/template diff --git a/srcpkgs/bruno/files/bruno.desktop b/srcpkgs/bruno/files/bruno.desktop new file mode 100644 index 00000000000000..43d530e7d07bcd --- /dev/null +++ b/srcpkgs/bruno/files/bruno.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Bruno +Exec=/usr/lib/bruno/bruno +Icon=bruno +Terminal=false +Type=Application +Categories=Development;Network; diff --git a/srcpkgs/bruno/template b/srcpkgs/bruno/template new file mode 100644 index 00000000000000..c8465094692886 --- /dev/null +++ b/srcpkgs/bruno/template @@ -0,0 +1,43 @@ +# Template file for 'bruno' +pkgname=bruno +version=2.2.0 +revision=1 +archs="x86_64" +hostmakedepends="n python3 python3-distutils-extra" +short_desc="Fast and Git-Friendly Opensource API client" +maintainer="Fabien JUIF " +license="MIT" +homepage="https://www.usebruno.com/" +changelog="https://www.usebruno.com/changelog" +distfiles="https://github.com/usebruno/bruno/archive/refs/tags/v${version}.tar.gz" +checksum=ebb96d34076b87cc755c4577b7e666177d53337581075bb8e33e50d53bd8dd56 + +do_build() { + # using node 20 + n 20 + + # dependencies + npm run setup + + # node gyp dependencies + npm install node-addon-api + + # actual bruno + npm run build:web + npm run build:electron +} + +do_install() { + local package_location="usr/lib/$pkgname" + + vlicense license.md + + vmkdir ${package_location} + vcopy packages/bruno-electron/out/linux-unpacked/* ${package_location} + + vinstall ${FILESDIR}/bruno.desktop 644 usr/share/applications + vinstall assets/images/logo.png 644 usr/share/pixmaps bruno.png + + vmkdir usr/bin + ln -sfr $DESTDIR/${package_location}/bruno $DESTDIR/usr/bin/bruno +}