summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a4eb0339ee1519d85b49922b8da601e2bdcb73e (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
49
50
51
52
53
54
55
56
# Maintainer : Daniel Bermond <dbermond@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=gst-plugins-ugly-git
pkgver=1.16.0.r16.g3cd445a4
pkgrel=2
pkgdesc='GStreamer Multimedia Framework Ugly Plugins (git version)'
arch=('x86_64')
url='https://gstreamer.freedesktop.org/'
license=('LGPL')
depends=(
    # official repositories:
        'libdvdread' 'libmpeg2' 'a52dec' 'libsidplay' 'libcdio'
        'x264' 'opencore-amr'
    # AUR:
        'gstreamer-git' 'gst-plugins-base-git'
)
makedepends=('git' 'meson' 'python')
provides=('gst-plugins-ugly')
conflicts=('gst-plugins-ugly')
source=('git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly.git'
        'gst-common'::'git+https://gitlab.freedesktop.org/gstreamer/common.git')
sha256sums=('SKIP'
            'SKIP')

prepare() {
    cd gst-plugins-ugly

    git submodule init
    git config --local submodule.common.url "${srcdir}/gst-common"
    git submodule update
}

pkgver() {
    cd gst-plugins-ugly
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    arch-meson gst-plugins-ugly build \
        -D gobject-cast-checks='disabled' \
        -D glib-asserts='disabled' \
        -D glib-checks='disabled' \
        -D doc='disabled' \
        -D package-name='GStreamer Ugly Plugins (Arch Linux)' \
        -D package-origin='https://www.archlinux.org/'
    ninja -C build
}

check() {
    meson test -C build --print-errorlogs
}

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