blob: 881713ff86ec3a1f2d90a1ff8cd6bab96e74f6bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Márk Sági-Kazár <mark.sagi-kazar@gmail.com>
# Maintainer: Francesco Persico <francesco.persico@gmail.com>
# Maintainer: Johan Guttormsson <johan@jgsoft.nl>
pkgname=nodenv
pkgver=1.4.0
pkgrel=1
pkgdesc="Manage multiple NodeJS versions"
arch=("any")
url="https://github.com/nodenv/nodenv"
license=("MIT")
optdepends=("nodenv-node-build")
conflicts=("${pkgname}-git")
install=nodenv.install
source=("${url}/archive/v${pkgver}.tar.gz")
md5sums=("f61c64ef3f9e6e3e8e375755cc2bdf91")
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p "${pkgdir}/usr/lib/${pkgname}/completions"
install -m 644 ./completions/* "${pkgdir}/usr/lib/${pkgname}/completions/"
mkdir -p "${pkgdir}/usr/lib/${pkgname}/libexec"
install -m 755 ./libexec/* "${pkgdir}/usr/lib/${pkgname}/libexec/"
mkdir -p "${pkgdir}/usr/bin"
ln -s "/usr/lib/${pkgname}/libexec/${pkgname}" "${pkgdir}/usr/bin/"
}
|