diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-04-12 01:13:45 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-04-12 01:13:45 +0000 |
commit | f5ec132210aeeef2010fbf8e483147f5e9cd5a97 (patch) | |
tree | e7b733f24e8da7a7464f56d159ab7905bf233f4d /testing/minidlna/APKBUILD | |
parent | 82dc433e8bb52ae0f413a69ffc1e4aa201b54487 (diff) | |
download | aports-f5ec132210aeeef2010fbf8e483147f5e9cd5a97.tar.bz2 aports-f5ec132210aeeef2010fbf8e483147f5e9cd5a97.tar.xz |
testing/minidlna: new aport
fixes #576
Diffstat (limited to 'testing/minidlna/APKBUILD')
-rw-r--r-- | testing/minidlna/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/minidlna/APKBUILD b/testing/minidlna/APKBUILD new file mode 100644 index 000000000..95ccfbd91 --- /dev/null +++ b/testing/minidlna/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=minidlna +pkgver=1.0.19 +pkgrel=0 +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 jpeg-dev + sqlite-dev ffmpeg-dev flac-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://downloads.sourceforge.net/minidlna/${pkgname}_${pkgver}_src.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 + # fix for busybox install + sed -i 's/--mode=0644/-m0644/g' Makefile || return 1 +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" + install -m644 -D "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname" +} + +md5sums="8bb5f2c0abc009e16039d7deecf09cf6 minidlna_1.0.19_src.tar.gz +c9965792baec8d2dc6953c7e28eda8bd minidlna.initd +6dc0cf1e59e0d53b910f306f81cb7e7f minidlna.confd" |