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

59 lines
1.6 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ocaml-labltk
_pkgname=labltk
pkgver=8.06.4
pkgrel=0
_ocamlver=4.06
pkgdesc="Tcl/Tk interface for OCaml"
url="http://labltk.forge.ocamlcore.org/"
arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml aport
license="LGPL-2.0-or-later-WITH-linking-exception"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="ocaml=~$_ocamlver ocaml-compiler-libs=~$_ocamlver tcl-dev tk tk-dev"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="https://forge.ocamlcore.org/frs/download.php/1727/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
./configure --tk-no-x11
make -j1 all
make -j1 opt
}
package() {
local libdir="$pkgdir/usr/lib/ocaml"
cd "$builddir"
mkdir -p "$libdir"/$_pkgname \
"$libdir"/stublibs \
"$pkgdir"/usr/bin
make install \
BINDIR="$pkgdir/usr/bin" \
INSTALLDIR="$pkgdir/usr/lib/ocaml/$_pkgname" \
STUBLIBDIR="$pkgdir/usr/lib/ocaml/stublibs"
# The *.o files are not installed by the Makefile.
# AIUI that prevents linking with native code programs.
install -m 0644 camltk/*.o "$libdir"/$_pkgname/
}
dev() {
local sitelib="usr/lib/ocaml/$_pkgname"
default_dev
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
cd "$pkgdir"/$sitelib
mkdir -p "$subpkgdir"/$sitelib
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
}
sha512sums="5221d2378f73cbcc2a4abd003023c01c8f0e1a919029ddb06069db30284b0bdef12e03b66b9c7c694c7a2128b060f2f2a5a34e4f3b8eed1060a0880a2e429644 labltk-8.06.4.tar.gz"