aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-01 08:45:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-07 16:46:17 +0000
commit05f5223c2f176c10a2157a52f638790c0cb1b591 (patch)
treec84e701d8553f7cb1294c14d0c36cf8cfdb12051
parent78d1d0ff56111fdef351e759c6e8a0f4d2585039 (diff)
downloadaports-05f5223c2f176c10a2157a52f638790c0cb1b591.tar.gz
aports-05f5223c2f176c10a2157a52f638790c0cb1b591.tar.bz2
aports-05f5223c2f176c10a2157a52f638790c0cb1b591.tar.xz
community/minidlna: modernize, rebuild against ffmpeg 4
-rw-r--r--community/minidlna/APKBUILD26
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