Skip to content

Instantly share code, notes, and snippets.

@yavorski
Created November 27, 2024 18:43
Show Gist options
  • Save yavorski/8b93f5c41db065e729ad8bda71e68908 to your computer and use it in GitHub Desktop.
Save yavorski/8b93f5c41db065e729ad8bda71e68908 to your computer and use it in GitHub Desktop.
npm nodejs fake/dummy package for arch linux
# 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