summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b584e0d7d794d977bd1e31b2ca88fc1e91bd2de (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
# Maintainer: Stefan Seemayer <mail@semicolonsoftware.de>
pkgname=ries
pkgver=20180812
pkgrel=1
pkgdesc="Find algebraic equations, given their solution"
arch=(i686 x86_64)
url="http://mrob.com/pub/ries/"
license=('GPL')

source=('http://mrob.com/pub/ries/src/ries.c.txt'
        'http://mrob.com/pub/ries/src/msal_math64.c.txt'
        'http://mrob.com/pub/ries/doc/ries.1.txt')

sha256sums=('73f77c1a91496056e5bf7629a848f002055554077793d323edf2c9f2c560152b'
            '98a219b116a15a5ad4768001996823a306d238f84405e75a1e228d81bfabaf2b'
            'b36684958adcad867e9be13c707d2f81280c3daf68ee3f0a5400f9ea040faf56')

build() {
  cd "$srcdir/"
 
  ln -sf ries.c{.txt,}
  ln -sf msal_math64.c{.txt,}

  gcc -DRIES_USE_SA_M64 -lm -march=native -Wall -O3 -o ries ries.c
}

package() {
  install -Dm 755 $srcdir/ries $pkgdir/usr/bin/ries
  install -Dm 644 $srcdir/ries.1.txt $pkgdir/usr/share/man/man1/ries.1
}

# vim:set ts=2 sw=2 et: