summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 882e4235638e5c348b0f86c0cec20fd604402dc4 (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
# Maintainer: Mikael Blomstrand <mbloms ÅT kth DÖT se>
# Contributor: Olaf Leidinger <oleid@mescharet.de>

pkgname=futhark-nightly
pkgver=0.11.0.r03a6258
pkgrel=1
pkgdesc="A data-parallel functional programming language"
arch=('x86_64')
url="https://github.com/diku-dk/futhark"
license=('ISC')
depends=('ncurses5-compat-libs'
         'zlib'
         'gmp')
optdepends=('opencl-headers: opencl support'
            'ocl-icd: opencl support'
            'opencl-driver: opencl support')
makedepends=()
provides=("${pkgname%-nightly}")
conflicts=("${pkgname%-nightly}")
source=("${pkgname}-${pkgver}.tar.gz::https://futhark-lang.org/releases/futhark-nightly-linux-x86_64.tar.xz")
sha256sums=(SKIP)

pkgver() {
  cd "${srcdir}/futhark-nightly-linux-x86_64"
  printf "%s.r%s" "$(./bin/futhark -V | grep Futhark | sed "s/Futhark //")" "$(cat commit-id)"
}

package() {
	cd "${srcdir}/futhark-nightly-linux-x86_64"
	make PREFIX="${pkgdir}/usr" install

    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}