summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1487cd8e78a994ed6052917ca407d44baca05c30 (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
# Maintainer: Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor: Sergei Lebedev <superbobry@gmail.com>

pkgname=ocaml-mascot
pkgver=1.0
pkgrel=3
pkgdesc="Style checker for OCaml sources"
arch=("i686" "x86_64")
url="http://mascot.x9c.fr"
license=('GPL')
depends=('ocaml>=3.12.1')
makedepends=('ocaml-findlib')
options=("!strip !makeflags")
source=("http://mascot.x9c.fr/distrib/mascot-$pkgver.tar.gz")
md5sums=('94a0abe41b9acbc4efa661dc9d7be122')
install=ocaml-mascot.install


build() {
  cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
  sh configure -ocaml-prefix /usr
  make all
}

package() {
  cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
  export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
  install -dm 755 "$OCAMLFIND_DESTDIR"
  make install
}