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

pkgname=ocaml-faad
pkgver=0.5.1
pkgrel=1
pkgdesc="OCaml bindings for the libfaad AAC decoder library"
arch=('i686' 'x86_64')
url="https://github.com/savonet/ocaml-faad"
license=('GPL2')
depends=('ocaml' 'faad2')
makedepends=('ocaml-findlib' 'dune')
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=('f62a7c4a48177ab6fab199502a335ceeea88f53e503d679c18fcc1b5343f20fd'
'skip')