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

54 lines
1.3 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ocaml-findlib
_pkgname=findlib
pkgver=1.8.0
pkgrel=0
pkgdesc="OCaml package manager"
url="http://projects.camlcity.org/projects/findlib.html"
arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml abuild
license="MIT"
depends="ocaml ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="ocaml-compiler-libs m4 ncurses-dev"
options="textrels"
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.camlcity.org/download/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
-sitelib /usr/lib/ocaml \
-mandir /usr/share/man \
-config /etc/$_pkgname.conf \
-no-camlp4
make -j1 all opt
}
package() {
cd "$builddir"
make install prefix="$pkgdir"
mkdir -p "$pkgdir"/usr/share/doc/$_pkgname/
install -m 644 doc/README doc/QUICKSTART \
"$pkgdir"/usr/share/doc/$_pkgname/
}
dev() {
local sitelib="usr/lib/ocaml/$_pkgname"
default_dev
cd "$pkgdir"
mkdir -p "$subpkgdir"/$sitelib
mv $sitelib/*.cmxa \
$sitelib/*.mli \
$sitelib/Makefile.config \
"$subpkgdir"/$sitelib/
}
sha512sums="a6dbfd172bff20ebf05db8a0a952a9f0dc67f9420b89771dbfc6193a7a2e5fe448c9d3bdcc113591175906644299529ef937652cfb2c17f67ec2c4dbb1d71e48 findlib-1.8.0.tar.gz"