aboutsummaryrefslogtreecommitdiffstats
path: root/testing/minidlna/APKBUILD
blob: 3b055116f0933df65d4b4d82bf12d30a5d77139f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=minidlna
pkgver=1.1.0
pkgrel=1
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 libiconv-dev"
makedepends="$depends_dev"
install="minidlna.pre-install"
subpackages=""
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
}

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
	chown $pkgusers:$pkggroups "$pkgdir"/var/cache/$pkgname
	install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
	install -m644 -D "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
	install -m755 -D "$pkgname.conf" "$pkgdir"/etc/$pkgname.conf	
}

md5sums="26484a84af3fceafdee26595aae097f7  minidlna-1.1.0.tar.gz
b87ac6bcab9f51bc79daa4141bd4e9a7  minidlna.initd
59d14c1bf3cd637138bfa58db7255d78  minidlna.confd"
sha256sums="c2ef2ebe4311d08a60a87ec0c86fbe5e7f4fd25b947841f1d71b0508c60a90e2  minidlna-1.1.0.tar.gz
d3f2c77adb61de55dd857b1dde2a8494c85f9e4642d4a23527cbdf0496ef073b  minidlna.initd
67603d65c6bd3918255f050cb5cfd6fc1373b024bca1ce728f03491a90d79e19  minidlna.confd"
sha512sums="9240d857fc3927c06183c04c4d657c1b2b0596f63dbc549f331b52032698349e82244870f2ebf6f8bc8bf0ff5f2ff88df69b53d280f5e5f9b618a5de58ac6f57  minidlna-1.1.0.tar.gz
db407248d7f3a711c9da3400319fd83e6531424993924d1755ebb53a1a94b12e3816355e4fa2d0f4be707785f820d6b7b5667c9a71a5364600748b647b179eab  minidlna.initd
e209848af0d79069ac989ad61d3be610b4c0c2783a207a50463a25ec3811b04d1da3a2acde54749878bec44e1567874ede827b978d5472c00f6a855663e5cbf8  minidlna.confd"