chore: sync AUR packages (shared)
This commit is contained in:
1 parent
7ec4bef5b9
commit
64e3a9ac40
6 files changed
+41
-28
No files matched your search
@@ -9,9 +9,11 @@ pkgbase = bun-bin
|
||||
provides = bun
|
||||
conflicts = bun
|
||||
options = !debug
|
||||
source_x86_64 = bun-x64-1.3.11.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-linux-x64.zip
|
||||
source_x86_64 = bun-x64.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-linux-x64.zip
|
||||
source_x86_64 = bun-x64-baseline.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-linux-x64-baseline.zip
|
||||
source_x86_64 = LICENSE
|
||||
sha256sums_x86_64 = 8611ba935af886f05a6f38740a15160326c15e5d5d07adef966130b4493607ed
|
||||
sha256sums_x86_64 = abe346f63414547cdf6b35b7a649a490c728b93d006226156923918a84c0e59b
|
||||
sha256sums_x86_64 = 9b296bcc20090b5ea079dc1bca15913a32246121169bcf54cbdb7384d6f5b32b
|
||||
source_aarch64 = bun-aarch64-1.3.11.zip::https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-linux-aarch64.zip
|
||||
source_aarch64 = LICENSE
|
||||
|
||||
@@ -13,36 +13,47 @@ provides=('bun')
|
||||
conflicts=('bun')
|
||||
options=('!debug')
|
||||
sha256sums_x86_64=('8611ba935af886f05a6f38740a15160326c15e5d5d07adef966130b4493607ed'
|
||||
'abe346f63414547cdf6b35b7a649a490c728b93d006226156923918a84c0e59b'
|
||||
'9b296bcc20090b5ea079dc1bca15913a32246121169bcf54cbdb7384d6f5b32b')
|
||||
sha256sums_aarch64=('d13944da12a53ecc74bf6a720bd1d04c4555c038dfe422365356a7be47691fdf'
|
||||
'9b296bcc20090b5ea079dc1bca15913a32246121169bcf54cbdb7384d6f5b32b')
|
||||
source_x86_64=(
|
||||
"bun-x64-${pkgver}.zip::https://github.com/oven-sh/bun/releases/download/bun-v${pkgver}/bun-linux-x64.zip"
|
||||
"LICENSE"
|
||||
"bun-x64.zip::https://github.com/oven-sh/bun/releases/download/bun-v${pkgver}/bun-linux-x64.zip"
|
||||
"bun-x64-baseline.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"
|
||||
if [ "${CARCH}" == "x86_64" ]; then
|
||||
if grep -q avx2 /proc/cpuinfo; then
|
||||
_srcdir="bun-linux-x64"
|
||||
else
|
||||
_srcdir="bun-linux-x64-baseline"
|
||||
fi
|
||||
else
|
||||
cd "bun-linux-x64"
|
||||
_srcdir="bun-linux-aarch64"
|
||||
fi
|
||||
cd "$srcdir/$_srcdir"
|
||||
install -dm755 "completions"
|
||||
SHELL=zsh "./bun" completions >"completions/bun.zsh"
|
||||
SHELL=bash "./bun" completions >"completions/bun.bash"
|
||||
SHELL=fish "./bun" completions >"completions/bun.fish"
|
||||
}
|
||||
package() {
|
||||
if [ "${CARCH}" == "aarch64" ]; then
|
||||
cd "bun-linux-aarch64"
|
||||
install -Dm755 "./bun" "${pkgdir}/usr/bin/bun"
|
||||
if [ "${CARCH}" == "x86_64" ]; then
|
||||
if grep -q avx2 /proc/cpuinfo; then
|
||||
_srcdir="bun-linux-x64"
|
||||
else
|
||||
_srcdir="bun-linux-x64-baseline"
|
||||
fi
|
||||
else
|
||||
cd "bun-linux-x64"
|
||||
install -Dm755 "./bun" "${pkgdir}/usr/bin/bun"
|
||||
_srcdir="bun-linux-aarch64"
|
||||
fi
|
||||
cd "$srcdir/$_srcdir"
|
||||
install -Dm755 "./bun" "${pkgdir}/usr/bin/bun"
|
||||
# simlink as bunx as in the official install.sh
|
||||
ln -s bun "${pkgdir}/usr/bin/bunx"
|
||||
|
||||
|
||||
Reference in new issue
Block a user