X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id D132FDC02F6 for ; Sat, 5 Sep 2015 03:07:10 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id A1062DC00DE for ; Sat, 5 Sep 2015 03:07:10 +0000 (UTC) Received: by qkcf65 with SMTP id f65so16056510qkc.3 for ; Fri, 04 Sep 2015 20:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=dHwHkoyt41YeFSzJBF6Bo5qP84uONZLTkRjIg51zK+c=; b=YIjWy4S1J5N6jke5MA2akurApG82/O0WwC5I8cv7roqcNKGlaa/iFaWtKwQR7Xkw+O JthywetvMwdS8t/37T2oACmPys6TF1lQNVak2wd4v2A1AK7I9/eBvvduMzkhk+LfUnHN cz27lSWJFRnSSqGg0vdTF4+Gj5SDVU2v26GT51NtmHbkaL4I1xQNwlpchju+OgbI78kR c1OhgCGOB/Rkz/8PFgR4Y/xmG3nGIzJhRjK+XXNQ2oJ2T7BGOeO1gS2beGqru1wx1D3I GnGzuNDJ383R2Ac7FmJ2S/2ZrOHOYcpz1w8Q7edvcPy+dN4x3REzoRIeZ938a3XzL9My dKrQ== X-Received: by 10.55.26.40 with SMTP id a40mr10705594qka.33.1441422429868; Fri, 04 Sep 2015 20:07:09 -0700 (PDT) Received: from koizumi.gateway.pace.com ([32.214.179.148]) by smtp.gmail.com with ESMTPSA id d60sm2544745qga.30.2015.09.04.20.07.09 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 20:07:09 -0700 (PDT) From: Muh Muhten To: alpine-aports@lists.alpinelinux.org Cc: Muh Muhten Subject: [alpine-aports] [PATCH] testing/opam: new aport Date: Fri, 4 Sep 2015 23:06:58 -0400 Message-Id: <1441422418-36223-1-git-send-email-muh.muhten@gmail.com> X-Mailer: git-send-email 2.3.2 (Apple Git-55) X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/opam/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 testing/opam/APKBUILD diff --git a/testing/opam/APKBUILD b/testing/opam/APKBUILD new file mode 100644 index 0000000..dea25bc --- /dev/null +++ b/testing/opam/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Michael Zuo +# Maintainer: Michael Zuo +pkgname=opam +pkgver=1.2.2 +pkgrel=0 +pkgdesc="OCaml Package Manager" +url="http://opam.ocaml.org" +arch="all" +license="LGPL3" +makedepends="ocaml" +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 +} + +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" -- 2.3.2 (Apple Git-55) --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---