mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/ocaml-topkg: new aport
http://erratique.ch/software/topkg The transitory OCaml software packager
This commit is contained in:
parent
2109a58605
commit
f8753eee69
47
testing/ocaml-topkg/APKBUILD
Normal file
47
testing/ocaml-topkg/APKBUILD
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||||
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||||
|
# FIXME: run tests!
|
||||||
|
pkgname=ocaml-topkg
|
||||||
|
_pkgname=topkg
|
||||||
|
pkgver=0.9.1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="The transitory OCaml software packager"
|
||||||
|
url="http://erratique.ch/software/topkg"
|
||||||
|
arch="all !x86 !armhf !s390x" # limited by ocaml aport
|
||||||
|
license="ISC"
|
||||||
|
depends="ocaml-result ocaml-runtime"
|
||||||
|
depends_dev="$pkgname=$pkgver-r$pkgrel"
|
||||||
|
makedepends="ocaml ocaml-compiler-libs ocaml-findlib ocaml-result-dev ocamlbuild opam"
|
||||||
|
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"
|
||||||
|
ocaml pkg/pkg.ml build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"
|
||||||
|
|
||||||
|
opam-installer -i \
|
||||||
|
--prefix="$pkgdir/usr" \
|
||||||
|
--libdir="$pkgdir/usr/lib/ocaml" \
|
||||||
|
--docdir="$builddir/.omit" \
|
||||||
|
$_pkgname.install
|
||||||
|
|
||||||
|
# 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="19773eb764b53a6e5110c44d7942d2557d6c8502a3037b57f7737efc08f4cc374845b431fdb1465207693d15a4b072aea3db97f8e60e069e3d24ae150e8c5c8f ocaml-topkg-0.9.1.tar.gz"
|
Loading…
Reference in New Issue
Block a user