summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 514299058056027891cf9c233a2566e3898bba98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: robertfoster
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=ocaml-speex
pkgver=0.4.1
pkgrel=1
pkgdesc="OCaml bindings to libspeex"
arch=('i686' 'x86_64')
url="https://github.com/savonet/ocaml-speex"
license=('GPL2')
depends=('ocaml' 'speex' 'ocaml-ogg')
makedepends=('dune' 'ocaml-findlib')
options=('!strip')
source=("${url}/archive/v${pkgver}.tar.gz")

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  
  dune build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  
  DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "lib/ocaml"
  
  install -dm755 "${pkgdir}/usr/share/"
  mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}

sha256sums=('396b48f6b7178a76c1bc64655d13609db26e545c7674e5063faba7866c57a57e')