mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 17:01:34 +02: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:
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ocaml-result
|
|
_pkgname=result
|
|
pkgver=1.3
|
|
pkgrel=4
|
|
pkgdesc="Compat result type"
|
|
url="https://github.com/janestreet/result"
|
|
arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml
|
|
license="BSD-3-Clause"
|
|
depends="ocaml-runtime"
|
|
makedepends="dune ocaml ocaml-findlib opam"
|
|
options="!check" # no tests provided
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/janestreet/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
jbuilder build @install
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
mkdir -p "$pkgdir"/usr/lib/ocaml
|
|
jbuilder install \
|
|
--destdir="$pkgdir/usr" \
|
|
--libdir="$pkgdir/usr/lib/ocaml"
|
|
|
|
# Remove annotation files.
|
|
rm "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt
|
|
|
|
# Contains just a readme and changelog.
|
|
rm -Rf "$pkgdir"/usr/doc
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
depends="$pkgname=$pkgver-r$pkgrel"
|
|
local sitelib="usr/lib/ocaml/$_pkgname"
|
|
|
|
cd "$pkgdir"/$sitelib
|
|
|
|
mkdir -p "$subpkgdir"/$sitelib
|
|
mv *.cmx *.cmxa *.ml "$subpkgdir"/$sitelib/
|
|
}
|
|
|
|
sha512sums="eb65e5c3e122db1bb477169d83efc7e02b0c72d3ffdb0cdadf7fc92e28c4e3843d8a0ed28133641cbcb239236fa5c83144610c5de713db5c8f63d9f433d37ba9 ocaml-result-1.3.tar.gz"
|