summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanabishi2022-09-06 19:54:01 +0500
committerHanabishi2022-09-06 19:54:01 +0500
commita581cafb61be16b41d070afe2f8511ca27e2c290 (patch)
tree3c344dc9ca6f00c0d3124ce9ceebd2470a7ba837
parent51ae94e7d3b703ba2aedb5b9af2af0076532d390 (diff)
downloadaur-a581cafb61be16b41d070afe2f8511ca27e2c290.tar.gz
Make the package build for different architectures
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD20
2 files changed, 26 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9b38dba831b..32e31dfaaf4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,10 +4,19 @@ pkgbase = esbuild-bin
pkgrel = 1
url = https://esbuild.github.io
arch = x86_64
+ arch = i686
+ arch = aarch64
+ arch = armv7h
license = MIT
provides = esbuild
conflicts = esbuild
- source = esbuild-linux-64-0.15.7.tgz::https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.7.tgz
- sha256sums = 6d9f01aad7f65eb8de693c771b0755a7383e38dec285e38e8e03ce21badbe652
+ source_x86_64 = esbuild-linux-64-0.15.7.tgz::https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.7.tgz
+ sha256sums_x86_64 = 6d9f01aad7f65eb8de693c771b0755a7383e38dec285e38e8e03ce21badbe652
+ source_i686 = esbuild-linux-32-0.15.7.tgz::https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.7.tgz
+ sha256sums_i686 = 16cf0a52df62bd10af9f09c4db9092c415e37a0850beaaa347cc0ee40099c10e
+ source_aarch64 = esbuild-linux-arm64-0.15.7.tgz::https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.7.tgz
+ sha256sums_aarch64 = fc8e46a7908e826fc3857a3dbb8556938f4a1d12ed79b3233c7cefadbd22e812
+ source_armv7h = esbuild-linux-arm-0.15.7.tgz::https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.7.tgz
+ sha256sums_armv7h = e039d252d189f909088e1300462358145d8dc1f5763f63530257faffd66dae1c
pkgname = esbuild-bin
diff --git a/PKGBUILD b/PKGBUILD
index 6dd6ef35fd7..39b467074eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@ pkgname=esbuild-bin
pkgver=0.15.7
pkgrel=1
pkgdesc="An extremely fast JavaScript and CSS bundler and minifier."
-arch=('x86_64')
+arch=('x86_64' 'i686' 'aarch64' 'armv7h')
url="https://esbuild.github.io"
license=('MIT')
@@ -10,11 +10,21 @@ _name="${pkgname%-bin}"
provides=("${_name}")
conflicts=("${_name}")
-_npmpkg="${_name}-linux-64"
-_archive="${_npmpkg}-${pkgver}.tgz"
+_get_source() {
+ local npmpkg="${_name}-linux-$1"
+ local archive="${npmpkg}-${pkgver}.tgz"
+ echo "${archive}::https://registry.npmjs.org/${npmpkg}/-/${archive}"
+}
+
+source_x86_64=("$(_get_source 64)")
+source_i686=("$(_get_source 32)")
+source_aarch64=("$(_get_source arm64)")
+source_armv7h=("$(_get_source arm)")
-source=("${_archive}::https://registry.npmjs.org/${_npmpkg}/-/${_archive}")
-sha256sums=('6d9f01aad7f65eb8de693c771b0755a7383e38dec285e38e8e03ce21badbe652')
+sha256sums_x86_64=('6d9f01aad7f65eb8de693c771b0755a7383e38dec285e38e8e03ce21badbe652')
+sha256sums_i686=('16cf0a52df62bd10af9f09c4db9092c415e37a0850beaaa347cc0ee40099c10e')
+sha256sums_aarch64=('fc8e46a7908e826fc3857a3dbb8556938f4a1d12ed79b3233c7cefadbd22e812')
+sha256sums_armv7h=('e039d252d189f909088e1300462358145d8dc1f5763f63530257faffd66dae1c')
package() {
cd "${srcdir}/package/bin"