#!/bin/bash
#
# Copyright 2004-2007 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Copyright 2005, 2006 Scott Harmon
# Copyright 2007-2026 Sasa Ostrouska <saxa@droplinegnome.org>
# Copyright 2014 John Truex <apolluwn@gmail.com>
# Available under the terms of the GNU GPL.
#

NAME="grilo-plugins"
VERSION="0.3.18"
REVISION="1"

PKG_SOURCEURL='${DLG_GNOMEMIRROR}/${NAME}/${VER_MAJ}.${VER_MIN}/${NAME}-${VERSION}.tar.xz'
PKG_PATCH[0]='radios.m3u'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
cxxflags
prepare

# Lets add the radios.m3u file.
findpatch filename ${PKG_PATCH[0]}
spewdo "cp $filename $PKG_BUILDROOT/src/freebox/"

analyzesource
configure -Denable-lua-factory=no -Denable-tracker=no -Denable-tracker3=yes
make
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
