You are not logged in.

#1 2020-04-29 12:34:05

nick_0278
Member
Registered: 2020-03-22
Posts: 21

[SOLVED (more or less)] Building AUR package failed

Hello,

Today I tried to install the bunq-desktop package by means of yay from the AUR. But I get this error:

ERROR: A failure occurred in build().Aborting...

so I tried to build it manually:

git clone https://aur.archlinux.org/bunq-desktop-git.git
cd bunq-desktop-git
makepkg -s

but I get the same error message.

(Full output)

nick@HP-arch-kde bunq-desktop-git]$ makepkg -s
==> Making package: bunq-desktop-git 0.8.1.r53.g33c483b-1 (Wed 29 Apr 2020 01:56:21 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning bunq-desktop-git git repo...
Cloning into bare repository '/home/nick/Downloads/bunq-desktop-git/bunq-desktop-git'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 18336 (delta 46), reused 44 (delta 14), pack-reused 18225Receiving objects: 100% (18336/18336), 11.39 MiB | 1.90 MiB/s, done.Resolving deltas: 100% (14022/14022), done.
-> Found bunq-desktop-git.desktop
==> Validating source files with sha256sums...bunq-desktop-git ... 
Skippedbunq-desktop-git.desktop ... 
Passed
==> Extracting sources...
-> Creating working copy of bunq-desktop-git git repo...
Cloning into 'bunq-desktop-git'...done.
==> Starting pkgver()...
==> Updated version: bunq-desktop-git snapshot.r210.g8fb9fcef-1
==> Starting build().../home/nicko/Downloads/bunq-desktop-git/PKGBUILD: line 57: yarn: command not found
==> ERROR: A failure occurred in build().Aborting...

That's the first time I've got trouble with an AUR package so I wanted to know if there's a way to fix this by myself or if I should contact someone to tell him about the error.

System information:
Kernel: x86_64 Linux 5.4.35-1-lts
Version yay: yay 9.4.6-2
Version make: make 4.3-3

Let me know if you need anything else smile

- Nick

Last edited by nick_0278 (2020-04-29 16:06:02)

Offline

#2 2020-04-29 13:02:42

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED (more or less)] Building AUR package failed

The makedepends line in the PKGBUILD is missing the second "d", edit the file and run makepkg again then add a note to the AUR page for that package so the maintainer can correct it.

Offline

#3 2020-04-29 13:11:05

nick_0278
Member
Registered: 2020-03-22
Posts: 21

Re: [SOLVED (more or less)] Building AUR package failed

Thanks for the fast answer!

I'll contact the contributor. But I couldn't solve the problem at all. Now I get a new error:

 yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.11: The platform "linux" is incompatible with this module.
info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "@types/react-i18next > react-i18next@11.3.1" has incorrect peer dependency "i18next@>= 19.0.0".
warning " > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
[5/5] Building fresh packages...
[-/7] ⠠ waiting...
[2/7] ⠠ electron
[6/7] ⠠ electron-chromedriver
[4/7] ⠠ node-sass
error /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/node-sass
Output:
Building: /usr/bin/node /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/usr/bin/node',
gyp verb cli   '/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@14.0.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:89:16
gyp verb `which` failed     at /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:175:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/which/which.js:89:16
gyp verb `which` failed     at /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:175:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                       ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:303:12)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at maybeClose (internal/child_process.js:1051:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:442:11)
gyp ERR! stack     at Socket.emit (events.js:315:20)
gyp ERR! stack     at Pipe.<anonymous> (net.js:671:12)
gyp ERR! System Linux 5.4.35-1-lts
gyp ERR! command "/usr/bin/node" "/home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/nicko/Downloads/bunq-desktop-git/src/bunq-desktop-git/node_modules/node-sass
gyp ERR! node -v v14.0.0




==> ERROR: A failure occurred in build().
    Aborting...

- Nick

Last edited by nick_0278 (2020-04-29 13:23:07)

Offline

#4 2020-04-29 13:54:06

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED (more or less)] Building AUR package failed

I know *nothing* about Node.js but this stands out:

nick_0278 wrote:
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2

So try installing python2. If that works then the maintainer will have to add that to the makedepends.

Offline

#5 2020-04-29 14:16:20

loqs
Member
Registered: 2014-03-06
Posts: 17,362

Re: [SOLVED (more or less)] Building AUR package failed

After adding python2

[5/5] Building fresh packages...
$ install-app-deps
  • please use as subcommand: electron-builder install-app-deps
  • electron-builder version=20.44.4
  • loaded configuration file=package.json ("build" field)
  • no native production dependencies
Done in 68.53s.
yarn run v1.22.4
$ npm run update-release-files && gulp build --env=production && yarn run webpack
/bin/sh: npm: command not found
error Command failed with exit code 127.

Looks to be missing npm as well.
Edit:
With both python2 and npm addded it fails with

==> Starting build()...
yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
warning file-loader@2.0.0: Invalid bin field for "file-loader".
warning mini-css-extract-plugin@0.4.5: Invalid bin field for "mini-css-extract-plugin".
info fsevents@1.2.11: The platform "linux" is incompatible with this module.
info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "@types/react-i18next > react-i18next@11.3.1" has incorrect peer dependency "i18next@>= 19.0.0".
warning " > ts-jest@23.10.5" has incorrect peer dependency "jest@>=22 <24".
[5/5] Building fresh packages...
$ install-app-deps
  • please use as subcommand: electron-builder install-app-deps
  • electron-builder version=20.44.4
  • loaded configuration file=package.json ("build" field)
  • no native production dependencies
Done in 70.07s.
yarn run v1.22.4
$ npm run update-release-files && gulp build --env=production && yarn run webpack
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1588169782847-0.8717981951259655/node but npm is using /usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> bunqdesktop@0.9.9 update-release-files /build/bunq-desktop-git/src/bunq-desktop-git
> node tasks/update_release_files.js


Updating versions across build files
Updated: /build/bunq-desktop-git/src/bunq-desktop-git/chocolatey/chocolateyInstall.ps1
Updated: /build/bunq-desktop-git/src/bunq-desktop-git/bunqdesktop.nuspec
Updated versions to 0.9.9
[15:16:23] Using gulpfile ~/bunq-desktop-git/src/bunq-desktop-git/gulpfile.js
[15:16:23] Starting 'build'...
[15:16:23] Starting 'bundle'...
[15:16:23] Finished 'bundle' after 120 ms
[15:16:23] Starting 'environment'...
[15:16:23] Starting '<anonymous>'...
[15:16:23] Finished '<anonymous>' after 1.2 ms
[15:16:23] Finished 'environment' after 1.64 ms
[15:16:23] Finished 'build' after 124 ms
$ cross-env NODE_ENV=production RELEASE_MODE=true webpack --progress --colors
<s> [webpack.Progress] 0% compiling
<s> [webpack.Progress] 10% building 0/0 modules 0 active 
<s> [webpack.Progress] 10% building 0/1 modules 1 active /build/bunq-desktop-git/src/bunq-desktop-git/node_modules/babel-loader/lib/index.js?cacheDirectory=./node_modules/.cache/babel_loader!/build/bunq-desktop-git/src/bunq-desktop-git/src/react/react-app.jsx
<s> [webpack.Progress] 10% building 1/1 modules 0 active 
<s> [webpack.Progress] 70% building 1/1 modules 0 active 
<s> [webpack.Progress] 70% finish module graph
<s> [webpack.Progress] 70% finish module graph FlagDependencyExportsPlugin
<s> [webpack.Progress] 70% finish module graph WasmFinalizeExportsPlugin
<s> [webpack.Progress] 70% sealing
<s> [webpack.Progress] 70% sealing WarnCaseSensitiveModulesPlugin
<s> [webpack.Progress] 72% basic dependencies optimization
<s> [webpack.Progress] 72% dependencies optimization
<s> [webpack.Progress] 72% dependencies optimization SideEffectsFlagPlugin
<s> [webpack.Progress] 72% dependencies optimization FlagDependencyUsagePlugin
<s> [webpack.Progress] 73% advanced dependencies optimization
<s> [webpack.Progress] 73% after dependencies optimization
<s> [webpack.Progress] 71% chunk graph
<s> [webpack.Progress] 71% after chunk graph
<s> [webpack.Progress] 71% after chunk graph WebAssemblyModulesPlugin
<s> [webpack.Progress] 74% optimizing
<s> [webpack.Progress] 74% basic module optimization
<s> [webpack.Progress] 75% module optimization
<s> [webpack.Progress] 75% advanced module optimization
<s> [webpack.Progress] 76% after module optimization
<s> [webpack.Progress] 76% basic chunk optimization
<s> [webpack.Progress] 76% basic chunk optimization EnsureChunkConditionsPlugin
<s> [webpack.Progress] 76% basic chunk optimization RemoveParentModulesPlugin
<s> [webpack.Progress] 76% basic chunk optimization RemoveEmptyChunksPlugin
<s> [webpack.Progress] 76% basic chunk optimization MergeDuplicateChunksPlugin
<s> [webpack.Progress] 77% chunk optimization
<s> [webpack.Progress] 77% advanced chunk optimization
<s> [webpack.Progress] 77% advanced chunk optimization SplitChunksPlugin
<s> [webpack.Progress] 77% advanced chunk optimization RemoveEmptyChunksPlugin
<s> [webpack.Progress] 77% after chunk optimization
<s> [webpack.Progress] 78% module and chunk tree optimization
<s> [webpack.Progress] 78% after module and chunk tree optimization
<s> [webpack.Progress] 79% basic chunk modules optimization
<s> [webpack.Progress] 80% chunk modules optimization
<s> [webpack.Progress] 80% chunk modules optimization ModuleConcatenationPlugin
<s> [webpack.Progress] 80% advanced chunk modules optimization
<s> [webpack.Progress] 81% after chunk modules optimization
<s> [webpack.Progress] 81% module reviving
<s> [webpack.Progress] 81% module reviving RecordIdsPlugin
<s> [webpack.Progress] 82% module order optimization
<s> [webpack.Progress] 82% module order optimization OccurrenceOrderModuleIdsPlugin
<s> [webpack.Progress] 82% advanced module order optimization
<s> [webpack.Progress] 83% before module ids
<s> [webpack.Progress] 83% module ids
<s> [webpack.Progress] 84% module id optimization
<s> [webpack.Progress] 84% module id optimization
<s> [webpack.Progress] 85% chunk reviving
<s> [webpack.Progress] 85% chunk reviving RecordIdsPlugin
<s> [webpack.Progress] 85% chunk order optimization
<s> [webpack.Progress] 85% chunk order optimization OccurrenceOrderChunkIdsPlugin
<s> [webpack.Progress] 86% before chunk ids
<s> [webpack.Progress] 86% chunk id optimization
<s> [webpack.Progress] 86% chunk id optimization FlagIncludedChunksPlugin
<s> [webpack.Progress] 87% after chunk id optimization
<s> [webpack.Progress] 88% hashing
<s> [webpack.Progress] 88% after hashing
<s> [webpack.Progress] 89% module assets processing
<s> [webpack.Progress] 90% chunk assets processing
<s> [webpack.Progress] 90% additional chunk assets processing
<s> [webpack.Progress] 92% additional asset processing
<s> [webpack.Progress] 92% chunk asset optimization
<s> [webpack.Progress] 92% chunk asset optimization UglifyJSPlugin
<s> [webpack.Progress] 93% after chunk asset optimization
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin ./bunqDesktop.js generate SourceMap
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin resolve sources
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin ./bunqDesktop.js attach SourceMap
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin
<s> [webpack.Progress] 93% asset optimization
<s> [webpack.Progress] 94% after asset optimization
<s> [webpack.Progress] 94% after seal
Error parsing bundle asset "/build/bunq-desktop-git/src/bunq-desktop-git/app/react/bunqDesktop.js": no such file

No bundles were parsed. Analyzer will show only original module sizes from stats file.

Webpack Bundle Analyzer saved report to /build/bunq-desktop-git/src/bunq-desktop-git/webpack.report.html
<s> [webpack.Progress] 100% 

Hash: 89721b7a48ccd1a50baf
Version: webpack 4.41.5
Time: 459ms
Built at: 04/29/2020 2:16:25 PM
 2 assets
Entrypoint bunqDesktop = ./bunqDesktop.js ./bunqDesktop.js.map
[0] ./src/react/react-app.jsx 3.58 KiB {0} [built] [failed] [1 error]

ERROR in ./src/react/react-app.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/helper-compilation-targets/package.json
    at applyExports (internal/modules/cjs/loader.js:492:9)
    at resolveExports (internal/modules/cjs/loader.js:508:23)
    at Function.Module._findPath (internal/modules/cjs/loader.js:632:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1001:27)
    at Function.Module._load (internal/modules/cjs/loader.js:884:27)
    at Module.require (internal/modules/cjs/loader.js:1074:19)
    at require (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/preset-env/lib/debug.js:8:33)
    at Module._compile (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
    at Module.load (internal/modules/cjs/loader.js:1034:32)
    at Function.Module._load (internal/modules/cjs/loader.js:923:14)
    at Module.require (internal/modules/cjs/loader.js:1074:19)
    at require (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/preset-env/lib/index.js:11:14)
    at Module._compile (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
    at Module.load (internal/modules/cjs/loader.js:1034:32)
    at Function.Module._load (internal/modules/cjs/loader.js:923:14)
    at Module.require (internal/modules/cjs/loader.js:1074:19)
    at require (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at requireModule (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/files/plugins.js:165:12)
    at loadPreset (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/files/plugins.js:83:17)
    at createDescriptor (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
    at /build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
    at Array.map (<anonymous>)
    at createDescriptors (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
    at createPresetDescriptors (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
    at presets (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
    at mergeChainOpts (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-chain.js:320:26)
    at /build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-chain.js:283:7
    at Generator.next (<anonymous>)
    at buildRootChain (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/config-chain.js:120:29)
    at buildRootChain.next (<anonymous>)
    at loadPrivatePartialConfig (/build/bunq-desktop-git/src/bunq-desktop-git/node_modules/@babel/core/lib/config/partial.js:95:62)
    at loadPrivatePartialConfig.next (<anonymous>)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().

Edit2:
Replacing the nodejs dependency with nodejs-lts-erbium and adding a makedepends for desktop-file-utils it then builds.

# Maintainer: Rolf van Kleef <aur@rolfvankleef.nl>
# Contributor: Gregory Goijaerts <crecketgaming@gmail.com>
# Contributor: Dennis Snijder <dennissnijder97@gmail.com>
# Contributor: Nick Duijvelshoff <nick@duijvelshoff.com>
# Contributor: basst85 <bastiaan85@gmail.com>
# Contributor: Kees Kluskens
# Contributor: TimZ99
# Contributor: Emile Bons

pkgname="bunq-desktop-git"
pkgver=0.9.1.r378.g74fc2b19
pkgrel=1
pkgdesc="A desktop implementation for the bunq API"
url="https://github.com/BunqCommunity/BunqDesktop"
provides=('bunq-desktop')
conflicts=('bunq-desktop-src' 'bunq-desktop-bin')
arch=('x86_64')
license=('MIT')
depends=('nodejs-lts-erbium')
makedepends=('git' 'yarn' 'python2' 'npm' 'desktop-file-utils')
source=("$pkgname"::"git://github.com/BunqCommunity/BunqDesktop.git"
        "$pkgname.desktop")
sha256sums=("SKIP"
            "34fd4c2b947cdd081e961b38d83582e27328b430a51580f78dd4c8769712cfd1")

pkgver() {
  cd $pkgname
  git describe --long --tags --exclude snapshot \
    | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
}

build() {
  cd $pkgname
  # Generate release files
  yarn && yarn release
}

package() {
  cd $pkgname
  install -dm 755 "$pkgdir"/usr/bin
  install -dm 755 "$pkgdir"/usr/share/pixmaps
  install -dm 755 "$pkgdir"/opt
  install -dm 755 "$pkgdir/"usr/share/licenses/$pkgname
  install -dm 755 "$pkgdir"/usr/share/applications/

  install -Dm 644 LICENSE "$pkgdir/"usr/share/licenses/$pkgname/LICENSE
  install -Dm 644 build/icons/512x512.png "$pkgdir"/usr/share/pixmaps/bunq.png

  cp -R --no-preserve=ownership dist/linux-unpacked "$pkgdir"/opt/$pkgname


  cd "$pkgdir"/usr/bin
  ln -s ../../opt/$pkgname/bunqdesktop bunq-desktop-src

  cd "$srcdir"
  desktop-file-install $pkgname.desktop --dir "$pkgdir"/usr/share/applications/
}

Last edited by loqs (2020-04-29 19:47:16)

Offline

Board footer

Powered by FluxBB