updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ocaml-bitstring / PKGBUILD
blobfe5596c758d2b4b1bcafe9f72ad8d579d30da752
1 # Maintainer: Sergei Lebedev <superbobry@gmail.com>
2 # Contributor: Pierre Bourdon <delroth@gmail.com>
4 pkgname=ocaml-bitstring
5 pkgver=2.0.2
6 pkgrel=3
7 pkgdesc="An OCaml library for Erlang-style bit patterns."
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 url="http://code.google.com/p/bitstring/"
11 depends=('ocaml')
12 makedepends=('time' 'ocaml-findlib')
13 source=("http://bitstring.googlecode.com/files/$pkgname-$pkgver.tar.gz")
14 md5sums=('0c9fa24a0e5201e8bb61f355b9058fe9')
16 build() {
17     cd "$srcdir/$pkgname-$pkgver"
19     ./configure --prefix=/usr
20     make
23 package() {
24   cd "$srcdir/$pkgname-$pkgver"
25   export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
26   install -dm 755 "$OCAMLFIND_DESTDIR/stublibs"
27   make install
28   install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"