Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 052fbf9f24af93a8c651cef6cc09b4cdf0225c46 Mon Sep 17 00:00:00 2001
- From: 1994 <1994intime@protonmail.com>
- Date: Wed, 16 Feb 2022 08:16:56 +0000
- Subject: [PATCH] Add support for aarch64
- 1. Patched package.json so that we build for the 'dir' target. The
- 'deb' target is attempting to use an x86_64 version of fpm.
- We don't use the built target anyway.
- 2. When the build is done on aarch64, the dist package directory is
- updated
- ---
- PKGBUILD | 14 ++++++++++++--
- package-json-dir-target.patch | 12 ++++++++++++
- 2 files changed, 24 insertions(+), 2 deletions(-)
- create mode 100644 package-json-dir-target.patch
- diff --git a/PKGBUILD b/PKGBUILD
- index 10af11b..c5a0864 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -14,13 +14,16 @@ options=('!strip')
- source=("${pkgname}-${pkgver}.tar.gz::https://github.com/adityapk00/zecwallet-lite/archive/v${pkgver}.tar.gz"
- "zecwallet-icons.tar.xz"
- "${pkgname}.desktop"
- + "package-json-dir-target.patch"
- )
- sha256sums=('0cca04b3e0bca8a99a3a6aadd167397a005460dfe5fc287ad0ec5a3dbee0d892'
- '19d8b4acee2c6ff062e86ecbb2365123d0471f2991192323780b53630104574d'
- - '7d596dda26bfb44a4b910b128a7f2c3c7734d0722312c28147ade706b25027d2')
- + '7d596dda26bfb44a4b910b128a7f2c3c7734d0722312c28147ade706b25027d2'
- + '151deee6257f5fae6984a45eaccc80906c1af142068ab3ebfe7ee9ccdd1f8f1f')
- prepare() {
- cd "${pkgname}-${pkgver}"
- + patch -u package.json -i ${srcdir}/package-json-dir-target.patch
- #yarn lint-fix
- yarn install
- }
- @@ -36,7 +39,14 @@ package() {
- cd "${pkgname}-${pkgver}"
- install -d "${pkgdir}/opt/${pkgname}/"
- - cp -ra dist/linux-unpacked/* "${pkgdir}/opt/${pkgname}/"
- +
- + unpackeddir='linux-unpacked'
- + if [ ${CARCH} = 'aarch64' ]
- + then
- + unpackeddir='linux-arm64-unpacked'
- + fi
- +
- + cp -ra dist/${unpackeddir}/* "${pkgdir}/opt/${pkgname}/"
- cd ..
- # Icons
- diff --git a/package-json-dir-target.patch b/package-json-dir-target.patch
- new file mode 100644
- index 0000000..21eb933
- --- /dev/null
- +++ b/package-json-dir-target.patch
- @@ -0,0 +1,12 @@
- +--- package.json 2021-10-14 18:14:22.000000000 +0000
- ++++ package.json 2022-02-16 06:15:58.897046436 +0000
- +@@ -183,8 +183,7 @@
- + "category": "Development",
- + "icon": "./resources/icon.icns",
- + "target": [
- +- "deb",
- +- "AppImage"
- ++ "dir"
- + ],
- + "desktop": {
- + "Name": "ZecWallet Lite",
- --
- 2.35.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement