Install dependencies

This commit is contained in:
hiimgoodpack 2021-03-27 09:47:37 -04:00
parent 11bc07c00b
commit b05946762f
Signed by: hiimgoodpack
GPG key ID: 4E0E62733C14AE69

View file

@ -1,7 +1,7 @@
pkgname=brainlet-git pkgname=brainlet-git
_name=brainlet _name=brainlet
_repository=brainlet _repository=brainlet
pkgver=96 pkgver=102
pkgrel=1 pkgrel=1
epoch=1 epoch=1
pkgdesc="A fast and open-source chat server" pkgdesc="A fast and open-source chat server"
@ -37,6 +37,9 @@ package() {
npm install -g --prefix "${pkgdir}/usr" --cache "${srcdir}/npm-cache" npm install -g --prefix "${pkgdir}/usr" --cache "${srcdir}/npm-cache"
rm "${pkgdir}/usr/lib/node_modules/${_name}" rm "${pkgdir}/usr/lib/node_modules/${_name}"
cp -r "${srcdir}/${_repository}/${_name}" "${pkgdir}/usr/lib/node_modules/${_name}" cp -r "${srcdir}/${_repository}/${_name}" "${pkgdir}/usr/lib/node_modules/${_name}"
pushd "${pkgdir}/usr/lib/node_modules/${_name}/"
npm install
popd
chmod -R 755 "${pkgdir}" chmod -R 755 "${pkgdir}"