blob: 062044967f890aaa1edf44a9d66e2ab6f0b64fb3 (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ocaml-ppx_tools_versioned
_pkgname=ppx_tools_versioned
pkgver=5.1
pkgrel=0
pkgdesc="Tools for authors of ppx rewriters"
url="https://github.com/ocaml-ppx/ppx_tools_versioned"
arch="all !x86 !armhf !s390x" # limited by ocaml aport
license="MIT"
makedepends="ocaml ocaml-findlib ocaml-migrate-parsetree-dev ocaml-result-dev"
# textrels needed for ppc64le
# no tests provided
options="textrels !check"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
mkdir -p "$OCAMLFIND_DESTDIR"
make install
# Remove annotation files.
rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname*/*.cmt*
}
dev() {
default_dev
depends="$pkgname=$pkgver-r$pkgrel"
local sitelib="usr/lib/ocaml/$_pkgname"
cd "$pkgdir"/$sitelib
mkdir -p "$subpkgdir"/$sitelib
mv *.cmx *.cmxa "$subpkgdir"/$sitelib/
}
sha512sums="b3412dc204ed3aed42c99f0e900108f5003a96e39b3a78df279c5e9512f14ceb77dde2ff2d552fb0386d43a5f276feca3bd306286a860e13680c94d39421125d ocaml-ppx_tools_versioned-5.1.tar.gz"
|