blob: 436b157279508c8b1fae644f3e73757023f6c835 (
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
34
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
}
|