updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / serviio / PKGBUILD
blobc92b425c3c38adcd660385c41d2e321f031d055f
1 # Maintainer: Casper Bruun <casperbruun@gmail.com>
3 pkgname=serviio
4 pkgver=0.6.1
5 pkgrel=1
6 pkgdesc="Free DLNA media server"
7 arch=(any)
8 url="http://www.serviio.org/"
9 license=(Proprietary)
10 depends=('java-environment' 'ffmpeg')
11 source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz
12         ${pkgname}.sh
13         ${pkgname}-console.sh)
14 md5sums=('31e94a67b696f48e42e1fb66c2d5e07b'
15          '4f237ec05468505f85aa21786e68d6c2'
16          '5d415ceb61fd26553956e03251190081')
18 package() {
19     cd ${srcdir}/${pkgname}-${pkgver}
20     
21     # define variable for Serviio home directory
22     SERVIIO_HOME=${pkgdir}/usr/share/java/${pkgname}
23     
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
28     
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
32     
33     # copy xml config files to the config folder
34     install -m644 config/*.xml ${SERVIIO_HOME}/config
35     
36     # copy all jar files to the lib folder
37     install -m644 lib/*.jar ${SERVIIO_HOME}/lib
38     
39     # copy derby.properties to library folder
40     install -m644 library/derby.properties ${SERVIIO_HOME}/library
41     
42     # copy plugins-readme.txt to plugins folder
43     install -m644 plugins/plugins-readme.txt ${SERVIIO_HOME}/plugins
44     
45     # create the log folder in /var/log
46     install -dm755 ${pkgdir}/var/log/${pkgname}
47     
48     # create a symlink that puts all log files in /var/log
49     ln -s /var/log/${pkgname} ${SERVIIO_HOME}/log
50     
51     # supply the license file
52     install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
53     install -m644 LICENCE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE