summaryrefslogtreecommitdiff
path: root/extra/facile/PKGBUILD
blob: af1da96fe8f52d0eabf657af7f453b3c0d818090 (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
# $Id: PKGBUILD 177541 2013-02-07 05:32:46Z eric $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=facile
pkgver=1.1
pkgrel=15
pkgdesc="A Functional Constraint Library"
arch=(i686 x86_64)
url="http://www.recherche.enac.fr/opti/facile/"
license=("LGPL")
makedepends=('ocaml')
depends=()
source=(http://www.recherche.enac.fr/opti/facile/distrib/$pkgname-$pkgver.tar.gz
        ocaml-facile-ocaml-4.patch)
md5sums=('ab673e1fc0859a42bcb639a02c2d7e9e'
         '1ffc2f08c9f1db8ef0d444ec06f82b79')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  # fix ocaml4
  patch -Np1 -i ../ocaml-facile-ocaml-4.patch
  ./configure
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver/src"
  install -d "$pkgdir/usr/lib/ocaml/facile"
  install -D -m 644 facile.cmxa facile.cmi facile.cma facile.a "$pkgdir/usr/lib/ocaml/facile"
}