summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78243eba09e17bb444d3349db35cc7908af356c4 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=ffms2000-git
pkgver=2.22.172.g68895b7
pkgrel=1
pkgdesc="The experimental future of FFMS2. (GIT version)"
url='https://forum.doom9.org/showthread.php?t=174469'
arch=('i686' 'x86_64')
license=('GPL')
depends=('gcc-libs'
         'libavformat.so'
         'libavcodec.so'
         'libswscale.so'
         'libavutil.so'
         'libavresample.so'
         )
makedepends=('git')
provides=('libffms2.so'
          'ffms2'
          'vapoursynth-plugin-ffms2'
          )
conflicts=('ffms2')
source=('git+https://github.com/FFMS/ffms2.git#branch=ffms2000')
sha256sums=('SKIP')

pkgver() {
  cd ffms2
  echo "$(git describe --long --tags | tr - .)"
}

build() {
  cd ffms2
  ./autogen.sh \
    --prefix=/usr \
    --enable-shared=yes \
    --enable-static=no

  make
}

package() {
  cd ffms2
  make DESTDIR="${pkgdir}" install
  install -d "${pkgdir}/usr/lib/vapoursynth"
  ln -s /usr/lib/libffms2.so "${pkgdir}/usr/lib/vapoursynth/"
}