1 # Maintainer: Francesco Groccia <frgroccia gmail.com>
2 # Contributor: Xemertix <arch88(at)katamail(dot)com>
7 pkgdesc="An anonymous p2p serverless portal system."
9 url="http://www.osiris-sps.org/"
11 depends=('libjpeg6' 'libpng12')
12 provides=('osiris-sps')
13 source=(http://www.osiris-sps.org/repository/osiris_${pkgver}_linux_i386.tar.gz
18 sha256sums=('1ed7a6ebde432859c8f4d50478275d872e9ec18df9c4ecd56d5e222c73211150'
19 'cc1ab7a1bae638f3112636e8c83c84d00a5710aaf15f15b79694d5d7417b958f'
20 'f225d2363014749981f91c01a7bf99d385831957027b0cee0155124830047b92'
21 '16f68e3d889427c62052ab2213fec19e8a00025bb4dad8f964264c9eb0d49fcf'
22 '98e79dce08cc29884d428f17d54b7dac264651c881e46dfd6a09354364b315e8')
24 [ "$CARCH" = "x86_64" ] && \
25 source=(http://www.osiris-sps.org/repository/osiris_${pkgver}_linux_x86_64.tar.gz
30 sha256sums=('1ed7a6ebde432859c8f4d50478275d872e9ec18df9c4ecd56d5e222c73211150'
31 'cc1ab7a1bae638f3112636e8c83c84d00a5710aaf15f15b79694d5d7417b958f'
32 'f225d2363014749981f91c01a7bf99d385831957027b0cee0155124830047b92'
33 '16f68e3d889427c62052ab2213fec19e8a00025bb4dad8f964264c9eb0d49fcf'
34 '98e79dce08cc29884d428f17d54b7dac264651c881e46dfd6a09354364b315e8')
39 install -D -m 755 osiris-sps $pkgdir/usr/bin/osiris-sps
42 install -d -m 755 ${pkgdir}/opt/${pkgname}/
43 cp -r osiris/* ${pkgdir}/opt/${pkgname}/
46 install system.xml ${pkgdir}/opt/${pkgname}/
48 # Freedesktop compatibility
49 install -D osiris-sps.png ${pkgdir}/usr/share/icons/osiris-sps.png
50 install -D osiris-sps.png ${pkgdir}/usr/share/pixmaps/osiris-sps.png
51 install -D osiris-sps.desktop ${pkgdir}/usr/share/applications/osiris-sps.desktop
54 find "$pkgdir"/opt/ -type f -exec chmod 664 {} +
55 find "$pkgdir"/opt/ -type d -exec chmod 755 {} +
56 find "$pkgdir"/usr/share -type f -exec chmod 664 {} +
57 find "$pkgdir"/usr/share -type d -exec chmod 755 {} +
58 chmod 775 $pkgdir/opt/${pkgname}/osiris