blob: c35fc4a7fa80784821db9df12b5b02ce6f1b6b32 (
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
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Manuel Wiesinger <m {you know what belongs here} mmap {and here} at>
# Contributor: Maxime Arthaud <maxime@arthaud.me>
_srcname=ocamlgraph
_pkgname=ocaml-$_srcname
pkgname="${_pkgname}-git"
pkgver=2.1.0.r14.g75533f6
pkgrel=1
pkgdesc="Graph library for OCaml"
arch=('x86_64')
url="https://github.com/backtracking/ocamlgraph"
license=('LGPL-2.1-only')
depends=('glibc' 'ocaml-stdlib-shims' 'ocaml>=4.08.0')
makedepends=('dune>=2.0' 'git' 'ocaml>=4.08.0')
checkdepends=('ocaml-graphics')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
b2sums=('SKIP')
check() {
cd "$srcdir/$_srcname"
dune runtest --release
}
build() {
cd "$srcdir/$_srcname"
dune build -p $_srcname
}
package() {
cd "$srcdir/ocamlgraph"
DESTDIR="${pkgdir}" dune install \
--prefix "/usr" \
--libdir "/usr/lib/ocaml" \
--docdir "/usr/share/doc" \
-p ${_srcname}
mv $pkgdir/usr/share/doc/$_srcname $pkgdir/usr/share/doc/$pkgname
}
pkgver() {
cd "$srcdir/$_srcname"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
|