1 # Maintainer: Casper Bruun <casperbruun@gmail.com>
6 pkgdesc="Free DLNA media server"
8 url="http://www.serviio.org/"
10 depends=('java-environment' 'ffmpeg')
11 source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz
13 ${pkgname}-console.sh)
14 md5sums=('31e94a67b696f48e42e1fb66c2d5e07b'
15 '4f237ec05468505f85aa21786e68d6c2'
16 '5d415ceb61fd26553956e03251190081')
19 cd ${srcdir}/${pkgname}-${pkgver}
21 # define variable for Serviio home directory
22 SERVIIO_HOME=${pkgdir}/usr/share/java/${pkgname}
24 # create the folders needed in the main directory
25 install -dm755 ${SERVIIO_HOME}/{config,lib,library,plugins}
26 # ... and the bin folder
27 install -dm755 ${pkgdir}/usr/bin
29 # place the serviio scripts in the /usr/bin folder
30 install -m755 ${srcdir}/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
31 install -m755 ${srcdir}/${pkgname}-console.sh ${pkgdir}/usr/bin/${pkgname}-console
33 # copy xml config files to the config folder
34 install -m644 config/*.xml ${SERVIIO_HOME}/config
36 # copy all jar files to the lib folder
37 install -m644 lib/*.jar ${SERVIIO_HOME}/lib
39 # copy derby.properties to library folder
40 install -m644 library/derby.properties ${SERVIIO_HOME}/library
42 # copy plugins-readme.txt to plugins folder
43 install -m644 plugins/plugins-readme.txt ${SERVIIO_HOME}/plugins
45 # create the log folder in /var/log
46 install -dm755 ${pkgdir}/var/log/${pkgname}
48 # create a symlink that puts all log files in /var/log
49 ln -s /var/log/${pkgname} ${SERVIIO_HOME}/log
51 # supply the license file
52 install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
53 install -m644 LICENCE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE