mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:04:37 +08:00
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
|
|
# Contributor: Thomas S Hatch <thatch45 at gmail dot com>
|
|
# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
|
|
# Contributor: Benjamin Andresen <benny(at)klapmuetz(dot)org>
|
|
# Contributor: scj <scj archlinux us>
|
|
|
|
pkgname=ocaml-findlib
|
|
pkgver=1.7.3
|
|
pkgrel=1
|
|
license=('MIT')
|
|
arch=('x86_64')
|
|
pkgdesc='Objective Caml (OCaml) package manager'
|
|
url='http://projects.camlcity.org/projects/findlib.html'
|
|
depends=('ocaml')
|
|
source=("http://download.camlcity.org/download/findlib-$pkgver.tar.gz")
|
|
md5sums=('7d57451218359f7b7dfc969e3684a6da')
|
|
options=('staticlibs' '!strip' '!makeflags') # otherwise the bytecode gets broken
|
|
|
|
build() {
|
|
cd "$srcdir/findlib-$pkgver"
|
|
|
|
./configure -config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man
|
|
make all opt
|
|
}
|
|
|
|
package () {
|
|
cd "$srcdir/findlib-$pkgver"
|
|
|
|
make prefix="$pkgdir" install
|
|
|
|
install -m755 src/findlib/ocamlfind_opt "$pkgdir/usr/bin/"
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|