diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-06 23:46:15 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-07 01:33:55 +0100 |
commit | 8af3e1f523d4793d38e79215209894fe745f4923 (patch) | |
tree | 8f3c751d9f0daa461d1ad8c3b1d8bc31eb0af586 /testing/ocaml-csv | |
parent | 787f0a32a96432962c207aabd1f5ed0d0219ae07 (diff) | |
download | aports-8af3e1f523d4793d38e79215209894fe745f4923.tar.bz2 aports-8af3e1f523d4793d38e79215209894fe745f4923.tar.xz |
testing/ocaml-csv: remove .ml files and -doc subpkg
Diffstat (limited to 'testing/ocaml-csv')
-rw-r--r-- | testing/ocaml-csv/APKBUILD | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/testing/ocaml-csv/APKBUILD b/testing/ocaml-csv/APKBUILD index fef261dab6..f2cf3d0eed 100644 --- a/testing/ocaml-csv/APKBUILD +++ b/testing/ocaml-csv/APKBUILD @@ -4,7 +4,7 @@ pkgname=ocaml-csv _pkgname=csv pkgver=2.0 -pkgrel=0 +pkgrel=1 pkgdesc="OCaml library for reading and writing CSV files" url="https://github.com/Chris00/ocaml-csv" arch="all !x86 !armhf !s390x" # limited by ocaml abuild @@ -12,7 +12,7 @@ license="LGPL-2.1-or-later" depends="ocaml" depends_dev="$pkgname=$pkgver-r$pkgrel" makedepends="dune ocaml ocaml-findlib-dev opam" -subpackages="$pkgname-dev $pkgname-doc csvtool" +subpackages="$pkgname-dev csvtool" source="$pkgname-$pkgver.tar.bz2::https://github.com/Chris00/$pkgname/releases/download/$pkgver/csv-$pkgver.tbz" builddir="$srcdir/$_pkgname-$pkgver" options="textrels !check" # FIXME check requires package lwt @@ -33,16 +33,15 @@ package() { cd "$pkgdir" - # Remove compiled tests and some generated code (?). + # Remove annotation files, some generated code (?) and sources. find usr/lib/ocaml \ -name '*.cmt' -delete \ -o -name '*.cmti' -delete \ - -o -name '*.ml-gen' -delete + -o -name '*.ml-gen' -delete \ + -o -name '*.ml' -delete - # Move docs to proper location. - mkdir -p usr/share/doc - mv usr/doc/csv usr/share/doc/$pkgname - rmdir usr/doc + # Contains just a readme and changelog. + rm -Rf usr/doc } dev() { @@ -52,7 +51,7 @@ dev() { cd "$pkgdir"/$sitelib mkdir -p "$subpkgdir"/$sitelib - mv *.cmx *.cmxa *.ml *.mli "$subpkgdir"/$sitelib/ + mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ } csvtool() { |