# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=minidlna pkgver=1.1.4 pkgrel=5 pkgdesc="A small dlna server" url="http://sourceforge.net/projects/minidlna/" arch="all" license="GPL" depends= depends_dev="libvorbis-dev libogg-dev libid3tag-dev libexif-dev libjpeg-turbo-dev sqlite-dev ffmpeg-dev flac-dev" makedepends="$depends_dev bsd-compat-headers" install="minidlna.pre-install" subpackages="$pkgname-doc" pkgusers="$pkgname" pkggroups="$pkgname" source="http://downloads.sourceforge.net/project/minidlna/minidlna/$pkgver/minidlna-$pkgver.tar.gz $pkgname.initd $pkgname.confd" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done #update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 mkdir -p "$pkgdir"/var/cache/$pkgname || return 1 chown $pkgusers:$pkggroups \ "$pkgdir"/var/cache/$pkgname || return 1 install -m755 -D "$srcdir/$pkgname.initd" \ "$pkgdir/etc/init.d/$pkgname" || return 1 install -m644 -D "$srcdir/$pkgname.confd" \ "$pkgdir/etc/conf.d/$pkgname" || return 1 install -m755 -D "$pkgname.conf" \ "$pkgdir"/etc/$pkgname.conf || return 1 install -Dm644 "$srcdir"/$pkgname-$pkgver/minidlna.conf.5 \ "$pkgdir"/usr/share/man/man5/minidlna.conf.5 || return 1 install -Dm644 "$srcdir"/$pkgname-$pkgver/minidlnad.8 \ "$pkgdir"/usr/share/man/man8/minidlnad.8 || return 1 } md5sums="67c9e91285bc3801fd91a5d26ea775d7 minidlna-1.1.4.tar.gz a27293006f33c6252de92599b5163eaa minidlna.initd 59d14c1bf3cd637138bfa58db7255d78 minidlna.confd" sha256sums="9814c04a2c506a0dd942c4218d30c07dedf90dabffbdef2d308a3f9f23545314 minidlna-1.1.4.tar.gz 3129a8b71322ceccebb05be8d0c25c28315888b5697eb9b746b66aabb8ed77ce minidlna.initd 67603d65c6bd3918255f050cb5cfd6fc1373b024bca1ce728f03491a90d79e19 minidlna.confd" sha512sums="24c2d82222798278d60faa46c6d7b19e44a91868da869f7d2aa2bf3c68e343a6c2a323f67223ea69242919047b08f059ed9c7a49b0b516384244acd98b51db4e minidlna-1.1.4.tar.gz 36ff0287e5db38bce9bf885ab89ad53e0f15f250dbb87bb508c1e643d0de866eea54b49b5798b65fed1af052134357134311f63f6698b5072c4134c07d159cac minidlna.initd e209848af0d79069ac989ad61d3be610b4c0c2783a207a50463a25ec3811b04d1da3a2acde54749878bec44e1567874ede827b978d5472c00f6a855663e5cbf8 minidlna.confd"