summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70a1e58d6256edd2c7c83dba10a96d0b7161f181 (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
# Maintainer: Felix Golatofski <contact@xdfr.de>

pkgname=ocaml-psmt2-frontend-git
_pkgname=psmt2-frontend
pkgver=r22.bb35b53
pkgrel=1
pkgdesc="A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language"
arch=('i686' 'x86_64')
url="https://github.com/OCamlPro-Coquera/psmt2-frontend"
license=('Apache2')
depends=('ocaml')
makedepends=('ocaml' 'ocaml-menhir')
options=(!strip staticlibs)
provides=('ocaml-psmt2-frontend')
conflicts=('ocaml-psmt2-frontend')
source=("git+https://github.com/OCamlPro-Coquera/psmt2-frontend.git")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname"
  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_pkgname"

  mkdir -p "$pkgdir/usr/lib/ocaml/psmt2-frontend"
  make DESTDIR="$pkgdir/usr" LIBDIR="$pkgdir/usr/lib/ocaml" install
}