summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca2ea977de3e1bd0d6e72167971ae6575f26f8d2 (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

pkgname=flopoco
pkgver=4.1.2
pkgrel=1

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

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

source=(https://gforge.inria.fr/frs/download.php/file/37213/flopoco-4.1.2.tgz)
md5sums=('425013cf0063284c27e5038bfff51efb')

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

package() {
	cd "$pkgname-$pkgver"

	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
}