Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Nov 8th, 2010  |  syntax: None  |  size: 1.86 KB  |  hits: 201  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor:Xemertix <arch88(at)katamail(dot)com>
  2.  
  3. pkgname=osiris-sps
  4. pkgver=0.13
  5. pkgrel=2
  6. pkgdesc="an anonymous p2p serverless portal system"
  7. arch=('i686' 'x86_64')
  8. url="http://osiris.kodeware.net/index.php"
  9. license=('custom')
  10. depends=('libjpeg6' 'libpng12')
  11. provides=('osiris-sps')
  12. source=(http://osiris.kodeware.net/repository/osiris_${pkgver}_linux_i386.tar.gz
  13.         'osiris-sps'
  14.         'osiris-sps.desktop'
  15.         'osiris-sps.png'
  16.         'system.xml')
  17. md5sums=('b02b7ddfc9b17ef570d8fabbc7549a06'
  18.          'eb019a6e1f1a949d23a889a27c5e6d97'
  19.          'ceddbf0fdf6213bb342994b980cb1ee8'
  20.          '11970c1304efd8b2f956898b801b9e2f'
  21.          'd3c7192a3dd32b8e3d4f5b4c7c866110')
  22.  
  23. [ "$CARCH" = "x86_64" ] && source=(http://osiris.kodeware.net/repository/osiris_${pkgver}_linux_x86_64.tar.gz 'osiris-sps' 'osiris-sps.desktop' 'osiris-sps.png' 'system.xml') && md5sums=('6b56ef8e563e672eaf8e7396a2e21024' 'eb019a6e1f1a949d23a889a27c5e6d97' 'ceddbf0fdf6213bb342994b980cb1ee8' '11970c1304efd8b2f956898b801b9e2f' 'd3c7192a3dd32b8e3d4f5b4c7c866110')
  24.  
  25. build() {
  26.   cd $srcdir
  27.   # Link to binary
  28.   install -D -m 755 osiris-sps $pkgdir/usr/bin/osiris-sps
  29.  
  30.   # Program
  31.   install -d -m 755 ${pkgdir}/opt/${pkgname}/
  32.   cp -r osiris/*  ${pkgdir}/opt/${pkgname}/
  33.  
  34.   # Config file
  35.   install system.xml ${pkgdir}/opt/${pkgname}/
  36.  
  37.   # Freedesktop compatibility
  38.   install -D osiris-sps.png ${pkgdir}/usr/share/icons/osiris-sps.png
  39.   install -D osiris-sps.png ${pkgdir}/usr/share/pixmaps/osiris-sps.png
  40.   install -D osiris-sps.desktop ${pkgdir}/usr/share/applications/osiris-sps.desktop
  41.  
  42.   # Fix permissions
  43.   find "$pkgdir"/opt/ -type f -exec chmod 664 {} +
  44.   find "$pkgdir"/opt/ -type d -exec chmod 755 {} +
  45.   find "$pkgdir"/usr/share -type f -exec chmod 664 {} +
  46.   find "$pkgdir"/usr/share -type d -exec chmod 755 {} +
  47.   chmod 775 $pkgdir/opt/${pkgname}/osiris
  48. }