updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / ppstream / PKGBUILD
blobcefe2ca9b40db7c8af6c78de79f6e227e1f24676
1 # Contributor: lerosua <lerosua@gmail.com>
2 # Contributor: vehiclee <imxifs@gmail.com>
4 pkgname='ppstream'
5 pkgver='1.0.0'
6 pkgrel='3'
7 arch=('i686' 'x86_64')
8 url='http://www.ppstream.com'
9 license=('unknown')
10 pkgdesc='PPStream for GNU/Linux'
11 #replace='ppstream64'
12 optdepends=('gksu')
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
26 build(){
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
36         fi
39 package(){
40         mkdir -p ${pkgdir}/usr/bin
41         ln -s /opt/pps/bin/PPStream ${pkgdir}/usr/bin/ppstream