diff options
author | Michael Zuo <muh.muhten@gmail.com> | 2015-08-30 15:00:01 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-05 13:49:22 +0200 |
commit | ccb0fd1300808f3652027a62be1c2e6ea6c2a7a0 (patch) | |
tree | b714d11c3843fea4339d74a085be211095aca8ad /testing | |
parent | 10e307f4f5b524ba53b823c5310ae46a2054f3c5 (diff) | |
download | aports-ccb0fd1300808f3652027a62be1c2e6ea6c2a7a0.tar.bz2 aports-ccb0fd1300808f3652027a62be1c2e6ea6c2a7a0.tar.xz |
testing/opam: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/opam/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/opam/APKBUILD b/testing/opam/APKBUILD new file mode 100644 index 0000000000..e2ec9b93ab --- /dev/null +++ b/testing/opam/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Michael Zuo <muh.muhten@gmail.com> +# Maintainer: Michael Zuo <muh.muhten@gmail.com> +pkgname=opam +pkgver=1.2.2 +pkgrel=0 +pkgdesc="OCaml Package Manager" +url="http://opam.ocaml.org" +arch="all" +license="LGPL3" +depends="" +depends_dev="ocaml" +makedepends="$depends_dev" +install="" +subpackages="" +source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-full-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make -j1 lib-ext all || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="7d348c2898795e9f325fb80eaaf5eae8 opam-full-1.2.2.tar.gz" +sha256sums="15e617179251041f4bf3910257bbb8398db987d863dd3cfc288bdd958de58f00 opam-full-1.2.2.tar.gz" +sha512sums="f095ef4c02e6a411ee115b508c7dc21cf6480f60ad5d84ed5ce5868afa1f6225ead0eb6703763d803edc22595e83db67cdd1a4ecab50ee2c62c20965b0542436 opam-full-1.2.2.tar.gz" |