WebCord: PKGBUILD errors

[itai@ManjaroPi4 linux]$ makepkg -s
==> Making package: webcord-git v1.1.0_pre1.r67.cbfb1a7-1 (Fri 16 Apr 2021 05:37:48 PM IDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning webcord git repo...
Cloning into bare repository '/home/itai/Downloads/electron-discord-webapp/build/linux/webcord'...
Username for 'https://github.com': ^C
==> ERROR: Aborted by user! Exiting...

[itai@ManjaroPi4 linux]$ 

I fixed it by replacing

source=("${pkgname%-git}::git+https://github.com/${_author}/${_repo}.git"

with

source=("${pkgname%-git}::git+https://github.com/SpacingBat3/electron-discord-webapp.git"

but now I get this error:

  -> Found webcord.desktop
==> ERROR: Integrity checks (md5) differ in size from the source array.
[itai@ManjaroPi4 linux]$ 

I’m guessing it should skip checking the md5sums because of this line: md5sums=('SKIP')

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (24 by maintainers)

Commits related to this issue

Most upvoted comments

It worked!

now I get this 😦

==> Entering fakeroot environment...       
==> Starting package()...
cp: cannot stat 'docs/': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
[itai@pinebookpro linux]$ 

Cannot reproduce on my side, check if docs folder exists in ${srcdir} or ${srcdir}/${pkgname%-git}.

I still need to do some minior changes in PKGBUILD to remove some unecessary packages while building app…

@Itai-Nelken OK, I’ve already pushed the changes (commit 80a3c1c) and tested them on Manjaro ARM. You can test it yourself now.

I’m closing this issue.

shellcheck output

(…)

Yea, I’ve noticed where I made an mistake. I’ll push changes soon.

Once this PKGBUILD will work without any issues, I’ll push it into AUR.

Also, reopening this issue yet again 😕️…

[itai@pinebookpro WebCord]$ ls /usr/lib/node_modules/
node-gyp  npm  semver

@Itai-Nelken You don’t have Electron installed globally. I’m pretty sure it is in dependencies… Actually, it seems there’s no typescript package installed either in your environment, which is weird that it could execute the tsc (typescript package provides /usr/lib/node_modules/typescript folder, which is not present there for some reason). However, makepkg -s should install these dependencies if they’re missing, which is next weird behaviour that I have no idea why it didn’t happened. To test, if typescript package provides its folder in node_modules, I used this command:

pacman -Ql typescript | grep /usr/lib/node_modules/typescript | head -n1

EDIT: (I left the original part of the comment that I wrote earlier to describe the difference between my environment and yours) I just realised that electron package does not provide node_modules, which basically means that it cannot be used for the app development (it seems I installed this part using npm, which is the reason why it builds for me). For that reason, I need to install electron manually just so tsc can detect the module and types I used earlier… I’ll also remove the global node_modules path from the tsconfig.json, I added it before because of PKGBUILD, but because the modules from this path aren’t really used for the building, I’ll just remove it…

Also, reopenning that issue again 😕️…

Ok, I’ll reopen this issue and try to reproduce this…

This should be now fixed. I tested this and it seems to build fine now.

It should be now fixed.

great! thanks!

Not yet fixed, see above…

Oh, I haven’t touched PKGBUILD a quite long time, mostly because I want to adapt it for AUR.

It should be now fixed.