Skip to content
Snippets Groups Projects
Commit 80aec0ad authored by Anil Madhavapeddy's avatar Anil Madhavapeddy Committed by Natanael Copa
Browse files

testing/opam: move from unmaintained and take maintainer

parent ec0b7d78
No related branches found
No related tags found
No related merge requests found
# Contributor: Michael Zuo <muh.muhten@gmail.com> # Contributor: Michael Zuo <muh.muhten@gmail.com>
# Maintainer: Michael Zuo <muh.muhten@gmail.com> # Maintainer: Anil Madhavapeddy <anil@recoil.org>
pkgname=opam pkgname=opam
pkgver=1.2.2 pkgver=1.2.2
pkgrel=0 pkgrel=0
pkgdesc="OCaml Package Manager" pkgdesc="OCaml Package Manager"
url="http://opam.ocaml.org" url="https://opam.ocaml.org"
arch="all" arch="all"
license="LGPL3" license="LGPL3"
depends="" depends="ocaml camlp4 curl tar unzip rsync aspcud"
depends_dev="ocaml"
makedepends="$depends_dev" makedepends="$depends_dev"
install="" install=""
subpackages="" subpackages=""
source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz" source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-full-$pkgver
_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() { build() {
cd "$_builddir" cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -40,7 +29,7 @@ build() { ...@@ -40,7 +29,7 @@ build() {
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment