summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a75f235acd984cf27477bdba6199cf5f12ce3bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Daniikk1012 <daniyarsar at gmail dot com>
# Contributor: Andriy Mykhaylyk <erp dot lsf at gmail dot com>
# Contributor: Lorenzo Tomei <tomeil at tiscali dot it>
# Contributor: eelvex <eelvex at gmail dot com>

pkgname=j9-git
pkgver=r4994.cd65a528
pkgrel=1
pkgdesc='J is a modern, high-level, general-purpose, high-performance programming language'
arch=('x86_64')
url='http://www.jsoftware.com'
license=('GPL3')
depends=('qt5-webengine' 'qt5-websockets' 'qt5-multimedia' 'qt5-svg' 'pcre2')
optdepends=('wget: for web/gethttp addon'
            'expat: for api/expat addon'
            'fftw: for math/fftw addon'
            'lapack: for math/lapack addon')
makedepends=('git' 'nasm')
source=("${pkgname}::git+https://github.com/jsoftware/jsource.git#branch=master"
        'qtide-git::git+https://github.com/jsoftware/qtide.git#branch=master')
md5sums=('SKIP'
         'SKIP')
build() {
  # jsource
  cd "${srcdir}/${pkgname}/make2"
  ./build_all.sh
  ./cpbin.sh
  # qtide
  cd "${srcdir}/qtide-git/lib"
  qmake && make
  cd "${srcdir}/qtide-git/main"
  qmake && make
}

package() {
  cd "${srcdir}"
  mkdir -p "${pkgdir}/usr/lib/j9/"
  cp -a "${pkgname}/jlibrary/"* "${pkgdir}/usr/lib/j9/"
  cp -a "${pkgname}/bin/linux/"*/* "${pkgdir}/usr/lib/j9/bin/"
  cp -a "qtide-git/bin/linux-${CARCH}/release/"* "${pkgdir}/usr/lib/j9/bin/"
  echo "${pkgname}-${pkgver}-${pkgrel}-${CARCH}.pkg.tar.xz (Arch Linux package)" > "${pkgdir}/usr/lib/j9/bin/installer.txt"
}