Created
November 27, 2024 18:43
-
-
Save yavorski/8b93f5c41db065e729ad8bda71e68908 to your computer and use it in GitHub Desktop.
npm nodejs fake/dummy package for arch linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Your Name <> | |
# Contributor: Arch Linux User <> | |
pkgname=nodejs-npm-fake | |
pkgver=1.0.0 | |
pkgrel=1 | |
pkgdesc="A dummy package for Node.js and npm (fake version)" | |
arch=('any') | |
url="https://nodejs.org/" | |
license=('MIT') | |
# Remove real dependencies to prevent downloading Node.js and npm | |
# depends=('nodejs' 'npm') # No real dependencies | |
makedepends=('git') | |
# Provide real packages but without actually installing them | |
provides=('nodejs' 'npm') | |
conflicts=('nodejs' 'npm') # Conflict with the real packages | |
replaces=('nodejs' 'npm') # Can replace real packages | |
source=() | |
sha256sums=() | |
# Build package (no actual build process) | |
build() { | |
# Nothing to build for the dummy package | |
return 0 | |
} | |
# Package the dummy files (no actual files) | |
package() { | |
# Just install a dummy file indicating that the package is installed | |
install -Dm644 /dev/null "${pkgdir}/usr/share/doc/${pkgname}/README.txt" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment