# $Id: PKGBUILD 289119 2017-02-17 22:41:29Z heftig $ # Maintainer (Arch): Jan Alexander Steffens (heftig) # Maintainer: André Silva pkgname=grilo-plugins pkgver=0.3.4 pkgrel=1.nonprism1 pkgdesc="A collection of plugins for the Grilo framework, without libgdata support" url="https://git.gnome.org/browse/grilo-plugins" arch=(i686 x86_64) license=(LGPL) depends=(grilo lua libmediaart libtracker-sparql gom libdmapsharing chromaprint gst-plugins-bad) makedepends=(git meson gperf) checkdepends=(gst-plugins-good gst-plugins-base) optdepends=('dleyna-server: DLNA plugin' 'tracker: Tracker plugin') replaces=(${pkgname}-nonprism) conflicts=(${pkgname}-nonprism) groups=(gnome) _commit=9e4026978b4069468a6fe6d3e961c4d1a9c88051 # tags/grilo-plugins-0.3.4^0 source=("git+https://git.gnome.org/browse/grilo-plugins#commit=$_commit" 0001-lua-factory-Remove-bad-prototype-for-html_entity_has.patch 0002-lua-factory-Remove-generated-htmlentity.c.patch 0001-meson-Fix-library-name-of-optical-media-plugin.patch) sha256sums=('SKIP' 'f13466194a7f6f923189563814aa40c2cafe2cee7a9f5b86d5e0208bd1840111' '4c9a2eaa9bba70e39fe65eb0ef06207f7553341c51d0d8bcab9c5934b30e7aea' 'a1a48c04892adc3dab9b71d59eb464eadf5c72fffe3a13a9e5c078421288baee') pkgver() { cd $pkgname git describe --tags | sed 's/^grilo-plugins-//;s/-/+/g' } prepare() { mkdir build cd $pkgname patch -Np1 -i ../0001-lua-factory-Remove-bad-prototype-for-html_entity_has.patch patch -Np1 -i ../0002-lua-factory-Remove-generated-htmlentity.c.patch patch -Np1 -i ../0001-meson-Fix-library-name-of-optical-media-plugin.patch } build() { cd build export LANG=en_US.UTF-8 meson --prefix=/usr --buildtype=plain ../$pkgname ninja } check() { cd build ninja test } package() { cd build DESTDIR="$pkgdir" ninja install }