# Template file for 'dleyna-server'
pkgname=dleyna-server
version=0.6.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libglib-devel gssdp-devel gupnp-devel gupnp-av-devel libsoup-devel
 gupnp-dlna-devel libxml2-devel dleyna-core-devel"
short_desc="Library for implementing services to manipulate Digital Media Servers"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://01.org/dleyna/"
distfiles="https://github.com/intel/dleyna-server/archive/${version}.tar.gz"
checksum=fd2263134b90cf5ce61d0f4ab411d88e08e0208061dbe4f7e03c25a5330d0b3b
conf_files="/etc/dleyna-server-service.conf"

pre_configure() {
	autoreconf -fi
}

dleyna-server-devel_package() {
	depends="libglib-devel dleyna-server-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/dleyna-server/*.so"
	}
}
