summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 565c13633128f8d59122392b3ff57fb28a47ba2b (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
pkgname=ocaml-lame-git
pkgver=r85.5ed5784
pkgrel=1
pkgdesc="OCaml bindings to the LAME mp3 encoder"
arch=('i686' 'x86_64')
url="https://github.com/savonet/ocaml-lame"
license=('GPL2')
depends=('ocaml' 'lame')
makedepends=('dune')
options=('!strip' '!makeflags')
source=("$pkgname::git+https://github.com/savonet/ocaml-lame")

pkgver() {
    cd "${srcdir}/${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
    cd "${srcdir}/${pkgname}"
    dune install --prefix "${pkgdir}/usr" --libdir \
        "${pkgdir}$(ocamlfind printconf destdir)"

    # Remove docs
    rm -rf "${pkgdir}/usr/doc"
}
md5sums=('SKIP')