mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ocaml-merlin-extend
|
|
_pkgname=merlin-extend
|
|
pkgver=0.3
|
|
pkgrel=1
|
|
pkgdesc="SDK to extend Merlin"
|
|
url="https://github.com/let-def/merlin-extend"
|
|
arch="all !x86 !armhf !s390x" # limited by ocaml aport
|
|
license="MIT"
|
|
depends="ocaml-runtime"
|
|
makedepends="ocaml ocaml-compiler-libs ocaml-cppo ocaml-findlib"
|
|
options="!check" # no tests provided
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/let-def/$_pkgname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
|
|
mkdir -p "$OCAMLFIND_DESTDIR"
|
|
make install
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
depends="$pkgname=$pkgver-r$pkgrel"
|
|
local sitelib="usr/lib/ocaml/${_pkgname/-/_}"
|
|
|
|
cd "$pkgdir"/$sitelib
|
|
|
|
mkdir -p "$subpkgdir"/$sitelib
|
|
mv *.cmxa *.ml *.mli "$subpkgdir"/$sitelib/
|
|
}
|
|
|
|
sha512sums="1e6436299b38c7fa57ae5b681a1409795545bc6f5956d6b1c37cbfdbdabfd90da476c030067fe2e016c823d60d1e5498c4536c869bf58425e1a6ff78295efba4 ocaml-merlin-extend-0.3.tar.gz"
|