From d1b8ae9d83d5a3a8000a6fdd9d4e90c4ed0b7ef4 Mon Sep 17 00:00:00 2001 From: Noel Jacob Date: Tue, 6 Feb 2024 13:44:13 +0530 Subject: [PATCH] add LICENSE --- .SRCINFO | 8 ++++++-- LICENSE | 21 +++++++++++++++++++++ PKGBUILD | 22 ++++++++++++++++++---- 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 LICENSE diff --git a/.SRCINFO b/.SRCINFO index 2e465ba..1fc6af6 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -8,9 +8,13 @@ pkgbase = bun-bin license = MIT provides = bun conflicts = bun - source_x86_64 = bun-x64-1.0.6.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.0.6/bun-linux-x64.zip + source_x86_64 = bun-x64-1.0.26.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.0.26/bun-linux-x64.zip + source_x86_64 = LICENSE sha256sums_x86_64 = 99655ef01146497289627af641765a8755d87e2af9ccde7edb04381df81d3b21 - source_aarch64 = bun-aarch64-1.0.6.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.0.6/bun-linux-aarch64.zip + sha256sums_x86_64 = 002c2696d92b5c8cf956c11072baa58eaf9f6ade995c031ea635c6a1ee342ad1 + source_aarch64 = bun-aarch64-1.0.26.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.0.26/bun-linux-aarch64.zip + source_aarch64 = LICENSE sha256sums_aarch64 = 1fe8666d97512a3963b24c0d89c2de160ba8e524d9f1f23193b147bce7a7b917 + sha256sums_aarch64 = 002c2696d92b5c8cf956c11072baa58eaf9f6ade995c031ea635c6a1ee342ad1 pkgname = bun-bin diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8aa2645 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) [year] [fullname] + +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. diff --git a/PKGBUILD b/PKGBUILD index e674446..b0e2f89 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,16 +11,28 @@ url="https://github.com/oven-sh/bun" license=('MIT') provides=('bun') conflicts=('bun') -sha256sums_x86_64=('99655ef01146497289627af641765a8755d87e2af9ccde7edb04381df81d3b21') -sha256sums_aarch64=('1fe8666d97512a3963b24c0d89c2de160ba8e524d9f1f23193b147bce7a7b917') +sha256sums_x86_64=( + '99655ef01146497289627af641765a8755d87e2af9ccde7edb04381df81d3b21' + '002c2696d92b5c8cf956c11072baa58eaf9f6ade995c031ea635c6a1ee342ad1' +) +sha256sums_aarch64=( + '1fe8666d97512a3963b24c0d89c2de160ba8e524d9f1f23193b147bce7a7b917' + '002c2696d92b5c8cf956c11072baa58eaf9f6ade995c031ea635c6a1ee342ad1' +) _baseline='' _baseline_sha256sums='fd53f49801b6ae09377578014cad79380ea53a73ed460cd741b7e0dd03dbac9b' if [[ $CARCH == 'x86_64' && $(cat /proc/cpuinfo | grep avx2) = '' ]];then _baseline='-baseline' sha256sums_x86_64=($_baseline_sha256sums) fi -source_x86_64=("bun-x64-${pkgver}.zip::https://github.com/oven-sh/bun/releases/download/bun-v${pkgver}/bun-linux-x64${_baseline}.zip") -source_aarch64=("bun-aarch64-${pkgver}.zip::https://github.com/oven-sh/bun/releases/download/bun-v${pkgver}/bun-linux-aarch64.zip") +source_x86_64=( + "bun-x64-${pkgver}.zip::https://github.com/oven-sh/bun/releases/download/bun-v${pkgver}/bun-linux-x64${_baseline}.zip" + "LICENSE" +) +source_aarch64=( + "bun-aarch64-${pkgver}.zip::https://github.com/oven-sh/bun/releases/download/bun-v${pkgver}/bun-linux-aarch64.zip" + "LICENSE" +) build() { if [ "${CARCH}" == "aarch64" ]; then cd "bun-linux-aarch64" @@ -42,6 +54,8 @@ package() { fi # simlink as bunx as in the official install.sh ln -s bun "${pkgdir}/usr/bin/bunx" + + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 completions/bun.zsh "${pkgdir}/usr/share/zsh/site-functions/_bun" install -Dm644 completions/bun.bash "${pkgdir}/usr/share/bash-completion/completions/bun"