summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3dff1f89392160f6800ced2d05d3dff3ca16d0e4 (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
# Contributor: éclairevoyant
# Contributor: Mikael Blomstrand <gmail.com: kmbloms>
# Contributor: √Ārni Dagur <arnidg@protonmail.ch>

pkgname=futhark
pkgver=0.22.4
pkgrel=1
pkgdesc="A data-parallel functional programming language."
arch=('x86_64')
url='https://futhark-lang.org/'
license=('ISC')
depends=('ncurses5-compat-libs' 'zlib')
makedepends=('cabal-static' 'ghc>=7.0.1' 'ghc-libs' 'ghc-static')
optdepends=('opencl-headers: OpenCL backend'
            'cuda: CUDA backend'
            'python-pyopencl: PyOpenCL backend')
source=("$pkgname-$pkgver.tar.gz::https://github.com/diku-dk/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('5edf79ed2076192ead64efb8a4d30d05b56b2c1ec5bdd0905c33d6099d312850')

prepare() {
	cd $pkgname-$pkgver
	make configure
}

build() {
	cd $pkgname-$pkgver
	make build
}

package() {
	cd $pkgname-$pkgver
	make PREFIX="$pkgdir/usr" install
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}