updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / linux-mtp-streaming-server / PKGBUILD
blob3720ee7116a09376ae67a3b584921267c3f07938
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=linux-mtp-streaming-server
4 pkgver=1.1.2
5 pkgrel=1
6 pkgdesc="streaming server for Linux MTPCenter 2.0 server solution for Pinnacle Showcenter and compatible media clients"
7 arch=('i686' 'x86_64')
8 url="http://www.panczyk.eu/linux/mtp_center_eng.html"
9 license=('GPL2')
10 groups=()
11 depends=('libmysqlclient')
12 makedepends=('autoconf')
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=(etc/linux-mtp-streaming-server/mtpserver.ini
17         etc/rc.d/linux-mtp-streaming-server)
18 options=()
19 install=$pkgname.install
20 source=(http://www.panczyk.eu/linux/download/linux_mtp_streaming_server-$pkgver.tar.gz
21         compile.patch
22         fix_docdir.patch
23         linux-mtp-streaming-server.sh)
24 md5sums=('d7650ee70282c8d262d68274ae10bc11'
25          '8c522435e9ee56997b94574e27af25e3'
26          '544edc96edfe790a3ec4b5f565d64a1f'
27          'ef02cd26ab8836c069ea3e1ab71fd67d')
29 build() {
30   cd "$srcdir/linux_mtp_streaming_server-$pkgver"
31   patch -Np0 -i $srcdir/compile.patch
32   patch -Np0 -i $srcdir/fix_docdir.patch
33   autoreconf
34   libtoolize --force
35   ./configure --prefix=/usr
36   make || return 1
39 package() {
40   cd "$srcdir/linux_mtp_streaming_server-$pkgver"
41   make DESTDIR="$pkgdir/" install || return 1
42   # fix ChangLog file
43   install -D -m644 doc/ChangeLog ${pkgdir}/usr/share/doc/linux_mtp_streaming_server/
44   # install daemon init script
45   install -D -m755 ${srcdir}/linux-mtp-streaming-server.sh ${pkgdir}/etc/rc.d/${pkgname}
46   # create config sample and folder
47   install -D -m755 ${srcdir}/linux_mtp_streaming_server-$pkgver/data/mtpserver.ini.sample ${pkgdir}/etc/${pkgname}/mtpserver.ini
52 #[root@workstation64 ~]# /usr/bin/linux_mtp_streaming_server -h
53 #Linux_MTPServer 1.1.2 (Linux)
54 #Usage:                 linux_mtp_streaming_server
55 #                       [-i mtpcenter main directory]
56 #                       [-d daemon mode]
57 #                       [-D Debug]
58 #                       [-U UPNP Debug]
59 #                       [-p path of mtpserver.ini configuration file]
60 #                       [-P path and name of PID file]
61 #                       [-l path for mtpserver logging files]
62 #                       [-h this help screen]
64 #You need to use the -i option with path to Linux MTPCenter