# Maintainer: Ingo Meyer pkgname="gr-framework" pkgver="0.52.0" pkgrel="1" pkgdesc="A universal framework for cross-platform visualization applications." arch=("i686" "x86_64" "armv6h" "armv7h" "aarch64") url="https://gr-framework.org" license=("MIT") depends=("bzip2" "cairo" "fontconfig" "freetype2" "ghostscript" "glfw-x11" \ "libjpeg-turbo" "libpng" "libtiff" "libx11" "libxft" "libxt" "pixman" \ "qhull" "qt5-base" "zlib") makedepends=("cmake") optdepends=("ffmpeg: video support") source=("https://github.com/sciapp/gr/archive/v${pkgver}.tar.gz") sha256sums=("8c9149377bfd3fe61b05cda34b980f894f1a723d7c74c4ace5da2e31d3630870") prepare() { cd "${srcdir}/gr-${pkgver}" || return echo "${pkgver}" > version.txt } build() { cd "${srcdir}/gr-${pkgver}" || return cmake -DCMAKE_INSTALL_PREFIX=/usr/gr \ -DCMAKE_BUILD_TYPE=Release \ -DGR_USE_BUNDLED_LIBRARIES=OFF \ -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 }