mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-07 06:32:29 +01:00
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:
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ocaml-gen
|
|
_pkgname=gen
|
|
pkgver=0.5.1
|
|
pkgrel=0
|
|
pkgdesc="Simple, efficient iterators for OCaml"
|
|
url="https://github.com/c-cube/gen/"
|
|
arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml aport
|
|
license="BSD-2-Clause"
|
|
depends="ocaml-runtime"
|
|
makedepends="dune ocaml ocaml-findlib opam"
|
|
options="!check" # XXX: tests require additional dependencies we don't have yet
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/c-cube/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
jbuilder build @install
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
jbuilder runtest
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
mkdir -p "$pkgdir"/usr/lib/ocaml
|
|
jbuilder install \
|
|
--destdir="$pkgdir"/usr \
|
|
--libdir="$pkgdir"/usr/lib/ocaml
|
|
|
|
# There's just a readme and changelog.
|
|
rm -Rf "$pkgdir"/usr/doc
|
|
|
|
# Remove annotation files and sources.
|
|
cd "$pkgdir"/usr/lib/ocaml/$_pkgname
|
|
rm -f *.cmt* *.ml
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
|
|
depends="$pkgname=$pkgver-r$pkgrel"
|
|
local sitelib="usr/lib/ocaml/$_pkgname"
|
|
|
|
mkdir -p "$subpkgdir"/$sitelib
|
|
|
|
cd "$pkgdir"/$sitelib
|
|
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
|
|
}
|
|
|
|
sha512sums="4576899776cfb3e62bc9b3703cca6024cc18ef12a1e2d1bf2a675c5a8d9833c0feac829c2254d0f2227d06eea5de831a4f52aae162ce53e4c7168e553b7ce873 ocaml-gen-0.5.1.tar.gz"
|