You are not logged in.

#1 2018-06-20 14:38:41

ExoDroiD
Member
Registered: 2018-01-01
Posts: 23

[SOLVED] Node.js dummy package

I noticed that the package nodejs-dummy was taken down from AUR, and since I'm using NVM I'd like it to be the only source for Node.js versions.

How does one create a dummy package?

Last edited by ExoDroiD (2018-06-24 09:42:27)

Offline

#2 2018-06-20 15:30:04

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

Re: [SOLVED] Node.js dummy package

https://lists.archlinux.org/pipermail/a … 21830.html
You create a dummy package the same way you create any other package but it only contains metadata (the PKGBUILD).

Offline

#3 2018-06-20 15:39:21

ExoDroiD
Member
Registered: 2018-01-01
Posts: 23

Re: [SOLVED] Node.js dummy package

loqs wrote:

https://lists.archlinux.org/pipermail/a … 21830.html
You create a dummy package the same way you create any other package but it only contains metadata (the PKGBUILD).

I tried comparing some dummy packages with their original ones (namely, android-sdk and android-studio) and there were some differences?

I believe I should fork the original PKGBUILD and change it, is that correct? If so, what exactly should I change?

Offline

#4 2018-06-20 17:13:11

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

Re: [SOLVED] Node.js dummy package

Those dummy packages are overly complex for node.js dummy package.  The dummy PKGBUILD needs to contain pkgname,pkgdesc,pkgver,pkgrel,arch,provides,conflicts
If you start with the original PKGBUILD keep those fields I have mentioned remove everything else change the pkgname and add conflicts and provides enrtries for the package you ae replacing.

Offline

#5 2018-06-21 05:34:03

ExoDroiD
Member
Registered: 2018-01-01
Posts: 23

Re: [SOLVED] Node.js dummy package

loqs wrote:

Those dummy packages are overly complex for node.js dummy package.  The dummy PKGBUILD needs to contain pkgname,pkgdesc,pkgver,pkgrel,arch,provides,conflicts
If you start with the original PKGBUILD keep those fields I have mentioned remove everything else change the pkgname and add conflicts and provides enrtries for the package you ae replacing.

Thank you very much for elaborating! The steps you mentioned seem pretty straightforward, except for the provides entry. What value(s) should I put there?

Thanks again.

Offline

#6 2018-06-21 09:37:29

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

Re: [SOLVED] Node.js dummy package

The conflicts entry prevents nodejs-dummy from being installed at the same time as nodejs,
the provides entry is needed so pacman knows nodejs-dummy provides nodejs and will not try to install it when another package has a dependency on nodejs.

Offline

#7 2018-06-24 09:42:04

ExoDroiD
Member
Registered: 2018-01-01
Posts: 23

Re: [SOLVED] Node.js dummy package

It worked! Thank you very much!

Offline

Board footer

Powered by FluxBB