summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98d6a7a7576bb0e392a61e773b14f029ab443173 (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
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>

pkgname=libmatheval
pkgver=1.1.11
pkgrel=1
pkgdesc="A C/Fortran library to parse and evaluate symbolic expressions input as text."
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/libmatheval/"
license=('GPL3')
depends=('flex')
install=libmatheval.install
source=("http://ftp.gnu.org/gnu/libmatheval/$pkgname-$pkgver.tar.gz"
        "removeifndefs.patch")
md5sums=('595420ea60f6ddd75623847f46ca45c4'
         'b340ca489388a8c7986654f4be8127f4')

prepare() {
  cd "$pkgname-$pkgver"
  patch -p1 -i "$srcdir/removeifndefs.patch"
}

build() {
  cd "$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}