diff options
-rw-r--r-- | community/minidlna/APKBUILD | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/community/minidlna/APKBUILD b/community/minidlna/APKBUILD index eafbf0867c..ced9db5209 100644 --- a/community/minidlna/APKBUILD +++ b/community/minidlna/APKBUILD @@ -7,8 +7,6 @@ pkgdesc="A small dlna server" url="https://sourceforge.net/projects/minidlna/" arch="all" license="GPL" -depends= -options="!check" makedepends=" bsd-compat-headers libvorbis-dev @@ -39,27 +37,31 @@ build() { --prefix=/usr \ --with-os-name="Alpine Linux" \ --with-db-path=/var/lib/minidlna \ - --with-log-path=/var/log/minidlna \ - || return 1 - make || return 1 + --with-log-path=/var/log/minidlna + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install install -dm750 -o $pkgusers -g $pkggroups \ "$pkgdir/var/lib/$pkgname" \ - "$pkgdir/var/log/$pkgname" || return 1 + "$pkgdir/var/log/$pkgname" install -m755 -D "$srcdir/$pkgname.initd" \ - "$pkgdir/etc/init.d/$pkgname" || return 1 + "$pkgdir/etc/init.d/$pkgname" install -m644 -D "$srcdir/$pkgname.confd" \ - "$pkgdir/etc/conf.d/$pkgname" || return 1 + "$pkgdir/etc/conf.d/$pkgname" install -m644 -D "$pkgname.conf" \ - "$pkgdir"/etc/$pkgname.conf || return 1 + "$pkgdir"/etc/$pkgname.conf install -Dm644 "$srcdir"/$pkgname-$pkgver/minidlna.conf.5 \ - "$pkgdir"/usr/share/man/man5/minidlna.conf.5 || return 1 + "$pkgdir"/usr/share/man/man5/minidlna.conf.5 install -Dm644 "$srcdir"/$pkgname-$pkgver/minidlnad.8 \ - "$pkgdir"/usr/share/man/man8/minidlnad.8 || return 1 + "$pkgdir"/usr/share/man/man8/minidlnad.8 } sha512sums="17827155bfbfd2b51939bc86080e8724dcded138af8fede9c7715c225524e86d3c21bfd8d40dbf201861ef154189d9c5e223b719bf7695251212b26ec290462b minidlna-1.2.1.tar.gz |