1 # Contributor: lerosua <lerosua@gmail.com>
2 # Contributor: vehiclee <imxifs@gmail.com>
8 url='http://www.ppstream.com'
10 pkgdesc='PPStream for GNU/Linux'
13 if [ "$CARCH" = "i686" ]; then
14 depends=('fuse' 'mplayer' 'qt')
15 source=('http://download.ppstream.com/ppstream_1.0.0-1_i386.deb')
16 md5sums=('0bda66a07463396093aa38e34c11b9ec')
17 elif [ "$CARCH" = "x86_64" ]; then
18 depends=('mplayer' 'lib32-qt')
19 source=('http://download.ppstream.com/ppstream_1.0.0-1_i386.deb'
20 'http://geekr.googlecode.com/files/libfuse.so.2.8.5')
21 md5sums=('0bda66a07463396093aa38e34c11b9ec'
22 '2f9b3b6e8a8a0dc922151acc4d2c8f5c')
25 install=$pkgname.install
27 ar x ppstream_1.0.0-1_i386.deb
28 tar xf data.tar.gz -C ${pkgdir}
29 mkdir -p ${pkgdir}/etc/ld.so.conf.d
30 echo '/opt/pps/lib' > ${pkgdir}/etc/ld.so.conf.d/pps.conf
32 if [ "$CARCH" = "x86_64" ]; then
33 mkdir -p ${pkgdir}/usr/lib32
34 install -D -m644 libfuse.so.2.8.5 ${pkgdir}/usr/lib32/
35 ln -s ${pkgdir}/usr/lib32/libfuse.so.2.8.5 ${pkgdir}/usr/lib32/libfuse.so.2
40 mkdir -p ${pkgdir}/usr/bin
41 ln -s /opt/pps/bin/PPStream ${pkgdir}/usr/bin/ppstream