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
47
pkgname=ocaml-ocplib-simplex-git
pkgver=0.5.r0.g9b0944c
pkgrel=1
pkgdesc='simplex algorithm implementation for solving systems of linear inequalities and optimizing linear objective functions'
url='https://github.com/OCamlPro-Iguernlala/ocplib-simplex'
arch=('i686' 'x86_64')
license=('LGPL')
depends=('ocaml' 'ocaml-num' 'ocaml-logs')
makedepends=('ocaml-findlib' 'git' 'dune')
provides=('ocaml-ocplib-simplex')
conflicts=('ocaml-ocplib-simplex')
source=('git+https://github.com/OCamlPro-Iguernlala/ocplib-simplex'
'dirs.patch')
sha256sums=('SKIP'
'8640fee9d5f773a79e992c564555b0448763e8a4d15060571984df7f754afb50')
pkgver() {
cd ocplib-simplex
git describe --long --tags | sed -r 's/^v//; s/([^-]*-g)/r\1/; s/-/./g'
}
prepare() {
cd ocplib-simplex
patch -p1 < ../dirs.patch
}
build() {
cd ocplib-simplex
make
}
check() {
cd ocplib-simplex
# XXX tests require opam
# make tests
}
package() {
cd ocplib-simplex
make LIBDIR="$(ocamlc -where)" DESTDIR="$pkgdir" install
}
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --color --unified --recursive --text ocplib-simplex.orig/Makefile ocplib-simplex/Makefile
--- ocplib-simplex.orig/Makefile 2022-11-26 22:39:34.236316494 -0700
+++ ocplib-simplex/Makefile 2022-11-26 22:42:26.368513269 -0700
@@ -18,7 +18,7 @@
@dune build $(WATCH) -w
install: build
- @dune install
+ @dune install --mandir="$(DESTDIR)/usr/share/man/" --docdir="$(DESTDIR)/usr/share/doc/" --etcdir="$(DESTDIR)/etc/" --datadir="$(DESTDIR)/opt/" --sbindir="$(DESTDIR)/sbin/" --bindir="$(DESTDIR)/usr/bin/"
uninstall:
@dune uninstall