mv build_tools instead of ln

This commit is contained in:
Antoine Martin 2023-09-05 19:46:00 -04:00
parent 4210ec4a39
commit 511b829e03
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -54,7 +54,7 @@ builddir="$srcdir"/$pkgname-v$pkgver
prepare() {
default_prepare
npm install -g --prefix "$srcdir"/npm_cache pkg grunt grunt-cli gifsicle
ln -s ../build_tools-$pkgver.$_buildno build_tools
mv ../build_tools-$pkgver.$_buildno build_tools
}
build() {
@ -79,14 +79,14 @@ build() {
msg "Generating docservice binary"
pkg "$builddir"/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService --options max_old_space_size=4096 -o $builddir/docservice
mv "$builddir"/docservice $builddir/server/DocService/docservice
msg "Generating spellchecker binary"
pkg "$builddir"/build_tools/out/linux_64/onlyoffice/documentserver/server/SpellChecker -o $builddir/spellchecker
mv "$builddir"/spellchecker $builddir/server/SpellChecker/spellchecker
msg "Generating metrics binary"
pkg "$builddir"/build_tools/out/linux_64/onlyoffice/documentserver/server/Metrics -o $builddir/metrics
mv "$builddir"/metrics $builddir/server/Metrics/metrics
}
package() {
export PATH="$PATH:$srcdir/npm_cache/bin"
cd "$builddir"/server
make install DESTDIR="$pkgdir"
}