summaryrefslogtreecommitdiff
path: root/nonprism/grilo-plugins/PKGBUILD
blob: 1e131470413ef3e6361f93972a6f2e49cc56b1e8 (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
# $Id$
# Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Andreas Grapentin <andreas@grapentin.org>
# Contributor: André Silva <emulatorman@hyperbola.info>

# parabola changes and rationale:
#  - removed libgdata support

pkgname=grilo-plugins
pkgver=0.3.5
pkgrel=1.nonprism1
pkgdesc="A collection of plugins for the Grilo framework, without libgdata support"
url="https://git.gnome.org/browse/grilo-plugins"
arch=(x86_64 i686 armv7h)
license=(LGPL)
depends=(grilo lua libmediaart tracker gom libdmapsharing chromaprint gst-plugins-bad
         gmime3)
makedepends=(git meson gperf)
checkdepends=(gst-plugins-good gst-plugins-base)
optdepends=('dleyna-server: DLNA plugin'
            'tracker-miners: Tracker plugin')
groups=(gnome)
_commit=ec1c807ae0a3d1f2f5ca12c3147e053d1f0bddd1  # tags/grilo-plugins-0.3.5^0
source=("git+https://git.gnome.org/browse/grilo-plugins#commit=$_commit"
        luafiles.diff)
sha256sums=('SKIP'
            '73b388d9564ae8c1d3f464831082acffd46b35bdc85a3a8bdb25f408f9c6dc48')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^grilo-plugins-//;s/-/+/g'
}

prepare() {
  mkdir build
  cd $pkgname
  patch -Np1 -i ../luafiles.diff
}

build() {
  cd build
  export LANG=en_US.UTF-8
  meson setup --prefix=/usr --buildtype=release ../$pkgname
  ninja
}

check() {
  cd build
  # Unreliable tests using websites...
  meson test || :
}

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