aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ushare/APKBUILD
blob: 8c2fb0f844104c37344df9240b542accd0557994 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=ushare
pkgver=1.1a
pkgrel=0
pkgdesc="A free UPnP A/V Media Server for Linux"
url="http://ushare.geexbox.org"
arch="all"
license="GPL2"
depends=
depends_dev="pkgconfig libupnp-dev libdlna-dev ffmpeg-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://ushare.geexbox.org/releases/${pkgname}-${pkgver}.tar.bz2
	upnp-build-fix.patch  
	ushare-config.patch
	ushare.initd
	ushare.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"
	sed -i -e 's/cat -n/cat/' configure
	./configure --prefix=/usr \
	    --sysconfdir=/etc/ushare \
	    --enable-dlna \
	    --with-libdlna-dir=/usr/include/libavformat \
	    --disable-nls 
	make || return 1
}
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D -m755 ../ushare.initd "$pkgdir"/etc/init.d/ushare
	install -D -m755 ../ushare.confd "$pkgdir"/etc/conf.d/ushare
}

md5sums="5bbcdbf1ff85a9710fa3d4e82ccaa251  ushare-1.1a.tar.bz2
32c29f9f673e8b3a3d9e7bf5e60febbc  upnp-build-fix.patch
5243475c0cebc5db49296b2f3691085b  ushare-config.patch
57b6ccaba8d17a79c6a651ad5f66cb6d  ushare.initd
28cc24dea30918ea859ed9c974f242d7  ushare.confd"