summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ec217fef6ebdc8586a8b19cc2c17cf763d4cfc1 (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
32
# Maintainer: robertfoster
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=ocaml-alsa
pkgver=0.3.0
pkgrel=4
_commit=00c17a5653875b8401f22c7ccd5ceaf5998b53ef
pkgdesc="OCaml ALSA bindings"
arch=('i686' 'x86_64')
url="https://github.com/savonet/ocaml-alsa"
license=('GPL2')
depends=('ocaml' 'alsa-lib')
makedepends=('ocaml-findlib' 'dune')
options=('!strip' '!makeflags')
source=("https://github.com/savonet/${pkgname}/archive/${_commit}.tar.gz")

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

  dune build
}

package() {
  cd "${srcdir}/${pkgname}-${_commit}"

  DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "lib/ocaml"

  install -dm755 "${pkgdir}/usr/share/"
  mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}

sha256sums=('a7d8b6db909647418017e81cfb481c73609fb69d5c66b8ffaf0ed57f7e850c74')