blob: 22e9e08e0343fdbc96d0abd5a6b48aa0dea6efec (
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
pkgname=ocaml-ffmpeg-git
pkgver=0.4.1.r120.3b1b6c7
pkgrel=1
pkgdesc="OCaml bindings to the FFmpeg library"
arch=('i686' 'x86_64')
url="https://github.com/savonet/ocaml-ffmpeg"
license=('LGPL2.1')
depends=('ocaml' 'ffmpeg')
makedepends=('dune' 'git')
options=('!strip' '!makeflags')
source=("$pkgname::git+${url}")
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "${srcdir}/${pkgname}"
dune build
}
package() {
cd "${srcdir}/${pkgname}"
dune install --prefix "${pkgdir}/usr" \
--libdir "${pkgdir}$(ocamlfind printconf destdir)"
}
md5sums=('SKIP')
|