You are not logged in.
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
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
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
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
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
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
It worked! Thank you very much!
Offline