user/scanservjs: match to MR
This commit is contained in:
parent
6794ae256b
commit
bf05c42c8c
1 changed files with 23 additions and 22 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
pkgname=scanservjs
|
||||
pkgver=2.21.0
|
||||
pkgrel=1
|
||||
pkgrel=0
|
||||
pkgdesc="SANE scanner nodejs web ui"
|
||||
arch="noarch"
|
||||
url="https://github.com/sbs20/scanservjs"
|
||||
|
@ -17,7 +17,7 @@ depends="
|
|||
"
|
||||
makedepends="npm"
|
||||
subpackages="$pkgname-doc $pkgname-openrc"
|
||||
options="!check"
|
||||
options="!check" # No testsuite
|
||||
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/sbs20/scanservjs/archive/refs/tags/v$pkgver.tar.gz
|
||||
|
@ -26,6 +26,8 @@ source="
|
|||
"
|
||||
|
||||
build() {
|
||||
# Uses version of webpack which is partially broken on nodejs >16
|
||||
export NODE_OPTIONS=--openssl-legacy-provider
|
||||
npm run install
|
||||
npm run build
|
||||
|
||||
|
@ -49,7 +51,6 @@ package() {
|
|||
mv "$pkgdir"/usr/share/webapps/scanservjs/config/* "$pkgdir/etc/webapps/scanservjs/"
|
||||
mv "$pkgdir"/usr/share/webapps/scanservjs/data/* "$pkgdir/var/lib/webapps/scanservjs/"
|
||||
|
||||
|
||||
rmdir "$pkgdir"/usr/share/webapps/scanservjs/config "$pkgdir/usr/share/webapps/scanservjs/data"
|
||||
ln -s /etc/webapps/scanservjs "$pkgdir/usr/share/webapps/scanservjs/config"
|
||||
ln -s /var/lib/webapps/scanservjs "$pkgdir/usr/share/webapps/scanservjs/data"
|
||||
|
|
Loading…
Reference in a new issue