summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed9fc746184c73bd9d81e817dd1c21d34dc0ccd1 (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
# Maintainer: James Clarke <james@jamesdavidclarke.com>

pkgname=xeus-lua-git
pkgver=r244.a1ba93c
pkgrel=1
pkgdesc="Lua kernel for Jupyter based on xeus"
arch=('any')
url="https://github.com/jupyter-xeus/xeus-lua"
license=('BSD-3-Clause')
depends=('xeus' 'nlohmann-json' 'cppzmq' 'xtl' 'pybind11' 'xwidgets')
makedepends=('git' 'cmake')
provides=('xeus-lua')
conflicts=('xeus-lua')
source=("${pkgname}::git+https://github.com/jupyter-xeus/xeus-lua.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}${HOME}/.local ..
  make
}

package() {
  cd "${pkgname}/build"
  make install
  install -Dm644 ../LICENSE "${pkgdir}${HOME}/.local/share/licenses/${pkgname}/LICENSE"
}