diff options
-rw-r--r-- | pcr/ocaml-text/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/ocaml-text/PKGBUILD b/pcr/ocaml-text/PKGBUILD new file mode 100644 index 000000000..436b15727 --- /dev/null +++ b/pcr/ocaml-text/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor (Arch) : Taylor Venable <taylor@metasyntax.net> +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> + +srcname='ocaml-text' +pkgname="${srcname}" +pkgver='0.6' +pkgrel=1 +pkgdesc='A library for dealing with text in a convenient way' +arch=('i686' 'x86_64') +url='http://forge.ocamlcore.org/projects/ocaml-text/' +license=('BSD') +depends=('ocaml>=3.11.0') +makedepends=('ocaml-findlib') +source=('http://forge.ocamlcore.org/frs/download.php/937/ocaml-text-0.6.tar.gz') +options=('!strip') + +build() { + cd "$srcdir/${srcname}-${pkgver}" + ./configure + + env DESTDIR="$pkgdir" \ + OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ + make +} + + +package() { + mkdir -p "$pkgdir/$(ocamlfind printconf destdir)" + mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs" + cd "$srcdir/${srcname}-${pkgver}" + env DESTDIR="$pkgdir" \ + OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ + make install + install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |