summaryrefslogtreecommitdiff
path: root/pcr/ocaml-text/PKGBUILD
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:21:33 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-05 20:21:33 +0200
commit0dc9bb024e85eadaa7471eb3b414b7bf7198c61d (patch)
treef9f35cd69b89084a5ba34840d7785954431872ed /pcr/ocaml-text/PKGBUILD
parent2c750c8a739d5e7797d8253052c63f06a751c2df (diff)
downloadabslibre-0dc9bb024e85eadaa7471eb3b414b7bf7198c61d.tar.gz
abslibre-0dc9bb024e85eadaa7471eb3b414b7bf7198c61d.tar.bz2
abslibre-0dc9bb024e85eadaa7471eb3b414b7bf7198c61d.zip
ocaml-text
Diffstat (limited to 'pcr/ocaml-text/PKGBUILD')
-rw-r--r--pcr/ocaml-text/PKGBUILD35
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
+}