summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c289ead94ae775aef22add67f27324368bc6446 (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
pkgname=mingw-w64-exprtk-git
pkgver=r173.bc53259
pkgrel=1
pkgdesc="C++ Mathematical Expression Library (mingw-w64)"
arch=('any')
url="http://www.partow.net/programming/exprtk/index.html"
license=('CPL')
depends=('mingw-w64-crt')
makedepends=('git')
provides=('mingw-w64-exprtk')
conflicts=('mingw-w64-exprtk')
source=('git+https://github.com/ArashPartow/exprtk.git')
md5sums=('SKIP')

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

pkgver() {
  cd "$srcdir/exprtk"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/exprtk"
  for _arch in ${_architectures}; do
    install -d "${pkgdir}"/usr/${_arch}/include
    install -D -m644 exprtk.hpp "${pkgdir}"/usr/${_arch}/include
  done
}