summaryrefslogtreecommitdiffstats
path: root/abs/extra/camlp4/PKGBUILD
blob: 9f66a183c83040f49009bea95e975a02e2d21122 (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
# $Id$
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=camlp4
pkgver=4.02+6
pkgrel=1
pkgdesc='Caml preprocessor and pretty-printer'
arch=('x86_64' 'i686')
license=('GPL2')
url='https://github.com/ocaml/camlp4/releases'
depends=('ocaml')
makedepends=('git')
options=('!makeflags' '!emptydirs' 'staticlibs')
source=("git://github.com/ocaml/camlp4#tag=$pkgver")
md5sums=('SKIP')

build() {
  cd "$pkgname"

  ./configure
  make all camlp4/META
}

package() {
  make -C "$pkgname" \
    BINDIR="$pkgdir/usr/bin" \
    LIBDIR="$pkgdir/usr/lib/ocaml" \
    PKGDIR="$pkgdir/usr/lib/ocaml" \
    install install-META
}

# vim:set ts=2 sw=2 et: