From 25f12621841b90185eb18a6b7bbcf47faf6b0cf7 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 30 Apr 2023 12:44:21 +0200 Subject: [PATCH] New package: bun-0.5.9 --- srcpkgs/bun/template | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/bun/template diff --git a/srcpkgs/bun/template b/srcpkgs/bun/template new file mode 100644 index 000000000000..590fcbc674fe --- /dev/null +++ b/srcpkgs/bun/template @@ -0,0 +1,31 @@ +# Template file for 'bun' +pkgname=bun +version=0.5.9 +revision=1 +archs="aarch64 x86_64" +build_style=fetch +hostmakedepends="unzip" +short_desc="JavaScript runtime, bundler, transpiler, and package manager" +maintainer="Bnyro " +license="MIT" +homepage="https://bun.sh" +changelog="https://bun.sh/blog" +case "$XBPS_TARGET_MACHINE" in +x86_64) + _arch=x64 + checksum=bf0c64c9d6097676fc3015007f2c295dd69a86cbb0e48be75dea149a2973aee1 + ;; +aarch64) + _arch=aarch64 + checksum=a495f046ea248e5c1534ba036a3be12080732dd6141d9b0bc57afdf11902e878 + ;; +*) + broken="No distfiles available for this target" + ;; +esac +distfiles="https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-${_arch}.zip" + +do_install() { + unzip bun-linux-${_arch}.zip + vbin bun-linux-${_arch}/bun +}