Upstream JASP ships no Linux binary, so the existing AUR package builds everything from source including several hundred R packages. This builds that once in CI and publishes the result as jasp-desktop-bin. JASP links against the system R and Qt6 rather than bundling them, so a rebuild is triggered by an Arch r/qt6-base bump as well as by a new JASP release, and the generated PKGBUILD pins depends to the versions actually built against.
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
# Maintainer: @MAINTAINER@
|
|
#
|
|
# Upstream JASP publishes installers for Windows and macOS only. The binary this
|
|
# package installs is therefore not an upstream release artifact: it is built
|
|
# from the tagged JASP sources on Arch by
|
|
# https://gitea.weircon.dk/agw/jasp-desktop-bin and published to GitHub Releases.
|
|
|
|
pkgname=jasp-desktop-bin
|
|
pkgver=@JASP_VERSION@
|
|
pkgrel=@PKGREL@
|
|
pkgdesc="JASP Desktop - a fresh way to do statistics (prebuilt binary)"
|
|
arch=('x86_64')
|
|
url="https://jasp-stats.org/"
|
|
license=('AGPL-3.0-or-later')
|
|
|
|
provides=("jasp-desktop=${pkgver}")
|
|
conflicts=('jasp-desktop')
|
|
|
|
# JASP links against the system R and Qt6 rather than bundling them, and the
|
|
# bundled R module library is compiled against one specific R minor. These are
|
|
# pinned to what this binary was actually built against — an Arch R or Qt6 bump
|
|
# makes pacman refuse the combination instead of leaving JASP silently broken.
|
|
depends=(
|
|
"r>=@R_MINOR@" "r<@R_NEXT_MINOR@"
|
|
"qt6-base>=@QT_MINOR@" "qt6-base<@QT_NEXT_MINOR@"
|
|
'qt6-declarative' 'qt6-svg' 'qt6-positioning' 'qt6-webchannel'
|
|
'qt6-webengine' 'qt6-5compat' 'qt6-httpserver'
|
|
'boost-libs' 'glpk' 'jsoncpp' 'libarchive' 'openssl' 'curl' 'sqlite'
|
|
'zlib' 'readstat' 'blas' 'lapack'
|
|
'jags' 'librdata-git'
|
|
)
|
|
|
|
# The tarball is a complete /opt + /usr install tree; there is nothing to
|
|
# compile or strip here.
|
|
options=('!strip' '!debug')
|
|
|
|
source=("jasp-desktop-${pkgver}-${pkgrel}-x86_64.tar.zst::@DOWNLOAD_URL@")
|
|
sha256sums=('@SHA256@')
|
|
|
|
package() {
|
|
cp -a "${srcdir}/opt" "${pkgdir}/opt"
|
|
cp -a "${srcdir}/usr" "${pkgdir}/usr"
|
|
}
|