From efb6b6eff98737fccfc42e57a1e634d4db453b0f Mon Sep 17 00:00:00 2001 From: anelki Date: Sat, 29 Apr 2023 01:27:18 -0500 Subject: [PATCH] New package: n-9.1.0 --- srcpkgs/n/files/README.voidlinux | 3 +++ srcpkgs/n/template | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 srcpkgs/n/files/README.voidlinux create mode 100644 srcpkgs/n/template diff --git a/srcpkgs/n/files/README.voidlinux b/srcpkgs/n/files/README.voidlinux new file mode 100644 index 000000000000..faefa91351e5 --- /dev/null +++ b/srcpkgs/n/files/README.voidlinux @@ -0,0 +1,3 @@ +It is strongly recommended to set the environment variable N_PREFIX to install to a user-writable area. For example: + +export N_PREFIX=$HOME/local/n diff --git a/srcpkgs/n/template b/srcpkgs/n/template new file mode 100644 index 000000000000..3d6c2065c4a2 --- /dev/null +++ b/srcpkgs/n/template @@ -0,0 +1,21 @@ +# Template file for 'n' +pkgname=n +version=9.1.0 +revision=1 +build_style=gnu-makefile +depends="curl" +short_desc="Simple command line NodeJS version management" +maintainer="anelki " +license="MIT" +homepage="https://github.com/tj/n" +changelog="https://raw.githubusercontent.com/tj/n/master/CHANGELOG.md" +distfiles="https://github.com/tj/n/archive/refs/tags/v${version}.tar.gz" +checksum=48306496413c61d37eeaa0a7328a4520b1da0c42739e046f6f9242de0d0ae270 + +do_install() { + vbin bin/n n +} + +post_install() { + vlicense LICENSE +}