From b99eda97846a3e152273942fb1e8f07b02bf62fc Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Tue, 6 Mar 2018 23:41:07 +0100
Subject: [PATCH] testing/ocaml-cppo: remove .ml files from -dev

---
 testing/ocaml-cppo/APKBUILD | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/testing/ocaml-cppo/APKBUILD b/testing/ocaml-cppo/APKBUILD
index e2b109da4cce..fbeb2cf64c4a 100644
--- a/testing/ocaml-cppo/APKBUILD
+++ b/testing/ocaml-cppo/APKBUILD
@@ -33,11 +33,14 @@ package() {
 		--destdir="$pkgdir/usr" \
 		--libdir="$pkgdir/usr/lib/ocaml"
 
-	# Remove compiled tests
-	rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname*/*.cmt*
+	cd "$pkgdir"
+
+	# Remove annotation files and sources.
+	rm -Rf usr/lib/ocaml/$_pkgname*/*.cmt*
+	rm -Rf usr/lib/ocaml/$_pkgname*/*.ml
 
 	# Nothing interesting here.
-	rm -Rf "$pkgdir"/usr/doc
+	rm -Rf usr/doc
 }
 
 dev() {
@@ -48,7 +51,7 @@ dev() {
 
 	cd "$pkgdir"/$sitelib
 	mkdir -p "$subpkgdir"/$sitelib
-	mv *.cmx *.cmxa *.ml *.mli "$subpkgdir"/$sitelib/
+	mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
 }
 
 sha512sums="89c6df66d597d929be7532ad82f0206b028bdbd79a0b4b39451bce3fa5bd63a80dce931d575f69bd7066de829347498c736657dfe9610b20700a652b9b542a4d  ocaml-cppo-1.6.4.tar.gz"
-- 
GitLab