diff options
author | M0Rf30 | 2021-03-14 18:25:26 +0100 |
---|---|---|
committer | M0Rf30 | 2021-03-14 18:25:26 +0100 |
commit | 5c85731f0994828c88d7141169495459967a640b (patch) | |
tree | 321cbccce5a916d79406fb2e36f6cd84266d45ea | |
parent | 50f2442331134a1cfb2196272b7225e9347be68c (diff) | |
download | aur-ocaml-lo.tar.gz |
ocaml-lo: 0.2.0
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 18 insertions, 17 deletions
@@ -1,17 +1,18 @@ pkgbase = ocaml-lo pkgdesc = OCaml bindings for LO library - pkgver = 0.1.2 + pkgver = 0.2.0 pkgrel = 1 url = https://github.com/savonet/ocaml-lo arch = i686 arch = x86_64 license = custom:LGPL2.1 with linking exception + makedepends = dune makedepends = ocaml-findlib depends = ocaml depends = liblo options = !strip - source = https://github.com/savonet/ocaml-lo/releases/download/0.1.2/ocaml-lo-0.1.2.tar.gz - sha512sums = 58ef8ae316ea41e5cf7d1a80c2f86f85e8b01903823df7c1fde80ea28ab9b5105535cb56fad0fd6649a23502426c713964fec4977d821ec5d3c4483036e2ccf0 + source = https://github.com/savonet/ocaml-lo/archive/v0.2.0.tar.gz + sha256sums = c8e11170e0f44ba096be0f19e7e78827f2fbb9cdb030fa0fdb88bc24bb9e1051 pkgname = ocaml-lo @@ -1,30 +1,30 @@ -# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> +# Maintainer: robertfoster +# Contributor: Jakob Gahde <j5lx@fmail.co.uk> pkgname=ocaml-lo -pkgver=0.1.2 +pkgver=0.2.0 pkgrel=1 pkgdesc="OCaml bindings for LO library" arch=('i686' 'x86_64') url="https://github.com/savonet/ocaml-lo" license=('custom:LGPL2.1 with linking exception') depends=('ocaml' 'liblo') -makedepends=('ocaml-findlib') +makedepends=('dune' 'ocaml-findlib') options=('!strip') -source=("https://github.com/savonet/ocaml-lo/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('58ef8ae316ea41e5cf7d1a80c2f86f85e8b01903823df7c1fde80ea28ab9b5105535cb56fad0fd6649a23502426c713964fec4977d821ec5d3c4483036e2ccf0') +source=("${url}/archive/v${pkgver}.tar.gz") build() { - cd "${srcdir}/${pkgname}-${pkgver}" - - ./configure - make + cd "${srcdir}/${pkgname}-${pkgver}" + dune build } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" + + DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "lib/ocaml" - export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" - mkdir -p "${OCAMLFIND_DESTDIR}/stublibs" - make install - install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" + install -dm755 "${pkgdir}/usr/share/" + mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/" } + +sha256sums=('c8e11170e0f44ba096be0f19e7e78827f2fbb9cdb030fa0fdb88bc24bb9e1051') |