summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0773552db8c2f58749505d30ff6f2d43f3214894 (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
43
44
45
46
# Maintainer: Adrien Prost-Boucle <adrien.prost-boucle@laposte.net>

pkgname=flopoco
pkgver=4.1.3
pkgrel=1

pkgdesc="A generator of arithmetic cores (Floating-Point Cores, but not only) for FPGAs (but not only)"
arch=('any')
url="https://flopoco.gitlabpages.inria.fr/flopoco/"
license=('custom')

depends=('mpfr' 'mpfi' 'sollya' 'gsl' 'fplll' 'libxml2')
makedepends=('cmake' 'boost' 'git')

source=('git+https://gitlab.inria.fr/flopoco/flopoco.git#branch=version4')
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/flopoco"

	# Flopoco version, from file VERSION
	_distver=`cat VERSION`

	echo $_distver
}

build() {
	cd "${srcdir}/flopoco"
	cmake -DCMAKE_INSTALL_PREFIX=/usr
	make
	./flopoco BuildAutocomplete
}

package() {
	cd "${srcdir}/flopoco"

	install -D ./flopoco         $pkgdir/usr/bin/flopoco
	install -D ./bin2fp          $pkgdir/usr/bin/flopoco_bin2fp
	install -D ./binIEEE7542fp   $pkgdir/usr/bin/flopoco_binIEEE7542fp
	install -D ./fp2bin          $pkgdir/usr/bin/flopoco_fp2bin
	install -D ./fp2binIEEE754   $pkgdir/usr/bin/flopoco_fp2binIEEE754
	install -D ./longacc2fp      $pkgdir/usr/bin/flopoco_longacc2fp

	install -D ./flopoco_autocomplete $pkgdir/etc/bash_completion.d/flopoco
}