summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9bbe7e55038ba6b73da48e38e71271fb1385105 (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
47
48
# Original Package: Jan de Groot <jgc@archlinux.org>
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>

pkgname=gst-libav-git
_gitname=gst-libav
pkgver=1.17.0.1.2232.e3e99dd
pkgrel=1
pkgdesc="Gstreamer libav Plugin"
arch=('i686' 'x86_64')
license=('GPL')
url="http://gstreamer.freedesktop.org/"
depends=('gstreamer-git' 'gst-plugins-base-git' 'bzip2' 'ffmpeg')
makedepends=('yasm' 'git' 'gtk-doc' 'meson' 'ninja' 'hotdoc' )
options=(!emptydirs)
provides=("gst-libav" "gst-ffmpeg")
conflicts=("gst-libav" "gst-ffmpeg")

source=('git+https://gitlab.freedesktop.org/gstreamer/gst-libav.git')
sha256sums=('SKIP')

pkgver() {
  cd $_gitname
  version=$(grep AC_INIT configure.ac | sed 's/AC_INIT(GStreamer libav, //' | sed 's/,//')
  hash=$(git log --pretty=format:'%h' -n 1)
  revision=$(git rev-list --count HEAD)
  
  echo $version.$revision.$hash
}

prepare() {
 cd $_gitname
 git submodule update --init --recursive


}
build() {
  export PKG_CONFIG_PATH='/usr/lib/pkgconfig'
  arch-meson $_gitname build \
    -Dpackage-name="GStreamer FFMPEG Plugin (Arch Linux)" \
    -Dpackage-origin="https://www/archlinux.org/" \
    -Ddoc=disabled

  ninja -C build
}

package() {
  DESTDIR="${pkgdir}" ninja -C build install
}