summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa7fb9faadf2d073553ad8911f41982b335b9dea (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
# Maintainer: David Hummel <hummeltech@sherpaguru.com>

pkgname=nodenv-node-build-git
pkgver=5.4.9.r0.gfa2a30f8
pkgrel=1
pkgdesc='Install NodeJS versions'
arch=('any')
url='https://github.com/nodenv/node-build'
license=('MIT')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" 'node-build')
depends=('bash')
source=('git+https://github.com/nodenv/node-build.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}"/node-build

  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}"/node-build

  PREFIX="${pkgdir}"/usr ./install.sh

  # License
  install -Dm644 "${srcdir}"/node-build/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}