summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 23469c53a535..6dd644f8929c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gr-framework
pkgdesc = A universal framework for cross-platform visualization applications.
pkgver = 0.51.2
- pkgrel = 3
+ pkgrel = 4
url = https://gr-framework.org
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 2ed8079a8256..957b52a53be8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname="gr-framework"
pkgver="0.51.2"
-pkgrel="3"
+pkgrel="4"
pkgdesc="A universal framework for cross-platform visualization applications."
arch=("i686" "x86_64" "armv6h" "armv7h" "aarch64")
url="https://gr-framework.org"
@@ -28,9 +28,15 @@ build() {
-S . \
-B build && \
cmake --build build
+ if command -v >/dev/null 2>&1; then
+ emmake make -C js || return
+ fi
}
package() {
cd "${srcdir}/gr-${pkgver}" || return
DESTDIR="${pkgdir}" cmake --install build
+ if [[ -f "js/gr.js" ]]; then
+ cp "js/gr.js" "${pkgdir}/usr/gr/lib/" || return
+ fi
}