Oliver Smith 9d9f981a2c aports: add support for armv7 [skip ci]
This makes it possible to provide armv7 as additional architecture in
Alpine, next to armhf. See the discussion in this ML thread:
<https://lists.alpinelinux.org/alpine-devel/6271.html>

It's done by adding armv7 next to armhf in the arch line and also
!armv7 where the arch line said !armhf. The following script was used:
2018-09-24 10:19:24 +03:00

44 lines
1.2 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ocaml-cmdliner
_pkgname=cmdliner
pkgver=1.0.2
pkgrel=1
pkgdesc="Declarative definition of command line interfaces for OCaml"
url="http://erratique.ch/software/cmdliner"
arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml aport
license="ISC"
depends="ocaml-result ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="ocaml ocaml-findlib ocaml-result-dev ocamlbuild"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
make -j1
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir" PREFIX=/usr
# Remove annotation files.
rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
}
dev() {
local sitelib="usr/lib/ocaml/$_pkgname"
default_dev
cd "$pkgdir"/$sitelib
mkdir -p "$subpkgdir"/$sitelib
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
}
sha512sums="942c56729eea6be8ad0c61ffb50ce8f2520b60daf20360f08a8456b3e3e1712adf76a937674c4691107d6885ad0fab0b2bd58341487f509c08690e2c69c555f3 ocaml-cmdliner-1.0.2.tar.gz"