Skip to content

Instantly share code, notes, and snippets.

@RenatoXSR
Created November 18, 2017 23:02
Show Gist options
  • Save RenatoXSR/16cea03f11de69508475d3b3404ec49f to your computer and use it in GitHub Desktop.
Save RenatoXSR/16cea03f11de69508475d3b3404ec49f to your computer and use it in GitHub Desktop.
AUR updated ocamlnet PKGBUILD for v.0.3.5
# Maintainer: nerflad (nerflad@gmail.com)
pkgname=gapi-ocaml
pkgver=0.3.5
pkgrel=1
pkgdesc="A simple OCaml client for Google Services."
arch=("x86_64" "i686" "armv7h")
url="https://astrada.github.io/gapi-ocaml/"
license=('MIT')
makedepends=('ocamlbuild')
depends=(
'ocaml>=4.02.3'
'ocaml-findlib>=1.2.7'
'ocamlnet>=4.1.4'
'ocaml-curl>=0.5.3'
'ocaml-cryptokit>=1.3.14'
'ocaml-extlib>=1.5.1'
'ocaml-yojson>=1.0.2'
'ocaml-xmlm>=1.0.2'
)
source=(https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz)
options=('!strip' 'staticlibs')
md5sums=('f52008dbe36c1d9d8ea376ae798fb927')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
ocaml setup.ml -configure --prefix /usr --destdir $pkgdir --disable-tests
ocaml setup.ml -build
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
install -dm755 "$OCAMLFIND_DESTDIR"
ocaml setup.ml -install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment