Skip to content

Commit

Permalink
fix: use ${pkg.name} for src too
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Dec 13, 2018
1 parent a172805 commit 48ee052
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/npm-pkgbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ backup=()
options=()
install=
changelog=
source=(${pkg.name}::${repo})
source=(${repo})
noextract=()
md5sums=('SKIP')
validpgpkeys=()
Expand Down Expand Up @@ -95,8 +95,8 @@ build() {
}
package() {
${Object.keys(pkg.bin||{}).map(n => `install -Dm755 "\${srcdir}/${pkg.bin[n]}" "\${pkgdir}/${pkg.bin[n]}"`).join('\n ')}
install "\${srcdir}/node_modules" "\${pkgdir}/node_modules"
${Object.keys(pkg.bin||{}).map(n => `install -Dm755 "\${srcdir}/${pkg.name}$/{pkg.bin[n]}" "\${pkgdir}/${pkg.bin[n]}"`).join('\n ')}
install "\${srcdir}/${pkg.name}/node_modules" "\${pkgdir}/node_modules"
}
`
);
Expand Down

0 comments on commit 48ee052

Please sign in to comment.