1 # Maintainer Matthew Bauer <mjbauer95@gmail.com>
6 pkgdesc="Galleon is a Java application which means it requires the Java Runtime Environment (JRE) to be installed for it to run on your computer. Once Galleon is running on your computer, you can access its applications on your TiVo DVR."
7 url="http://galleon.tv/"
10 depends=('java-runtime')
15 _cvsroot=":pserver:anonymous:@galleon.cvs.sourceforge.net:/cvsroot/galleon"
21 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
22 if [ -d $_cvsmod/CVS ]; then
26 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
30 msg "CVS checkout done or server timeout"
31 msg "Starting make..."
33 APPDIR=/usr/share/galleon
34 CACHEDIR=/var/cache/galleon
36 LIBDIR=/usr/lib/galleon
37 LOGDIR=/var/log/galleon
38 VARDIR=/var/lib/galleon
40 install -d $pkgdir/${APPDIR}
41 install -d $pkgdir/${CACHEDIR}
42 install -d $pkgdir/${CONFDIR}
43 install -d $pkgdir/${LIBDIR}
44 install -d $pkgdir/${LOGDIR}
45 install -d $pkgdir/${VARDIR}/hme
46 install -d $pkgdir/${VARDIR}/data
47 install -d $pkgdir/etc/rc.d
48 mkdir -p $pkgdir/usr/bin
49 ln -s /usr/share/galleon/bin/galleon $pkgdir/etc/rc.d/galleon
50 ln -s /usr/share/galleon/bin/galleon $pkgdir/usr/bin
51 cp -rf media $pkgdir/${APPDIR}
52 cp -rf bin/unix $pkgdir/${APPDIR}/bin
53 cp -f bin/unix/Makefile *.txt $pkgdir/${APPDIR}
54 cp -f conf/*.* $pkgdir/${CONFDIR}
55 cp -rf lib/* $pkgdir/${LIBDIR}
56 cp -rf apps skins $pkgdir/${VARDIR}
57 cp -rf conf/templates $pkgdir/${VARDIR}
58 cp -rf bin/unix/wrapper-linux* $pkgdir/usr/share/galleon/bin/wrapper
59 chmod a+rwx $pkgdir/usr/share/galleon/bin/wrapper
60 chmod a+rwx $pkgdir/${APPDIR}/bin/gui.sh
61 chmod a+rwx $pkgdir/${APPDIR}/bin/run.sh
62 chmod a+rwx $pkgdir/${APPDIR}/bin/galleon
63 # chmod +rw $pkgdir/${CONFDIR}/configure.xml
64 ln -sf ${VARDIR}/apps $pkgdir/${APPDIR}/apps
65 ln -sf ${CONFDIR} $pkgdir/${APPDIR}/conf
66 ln -sf ${VARDIR}/data $pkgdir/${APPDIR}/data
67 ln -sf ${VARDIR}/hme $pkgdir/${APPDIR}/hme
68 ln -sf ${LIBDIR} $pkgdir/${APPDIR}/lib
69 ln -sf ${LOGDIR} $pkgdir/${APPDIR}/logs
70 ln -sf ${VARDIR}/skins $pkgdir/${APPDIR}/skins
71 ln -sf ${VARDIR}/templates $pkgdir/${CONFDIR}/templates