This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

openerp 7.0_20130219_002614

By: a guest on Feb 19th, 2013  |  syntax: Bash  |  size: 1.96 KB  |  views: 65  |  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. # Maintainer: Bidossessi Sodonon
  2. # Contributors: Dan Serban, Mark Doe, L42y
  3.  
  4. pkgname=openerp
  5. pkgver=7.0_20130219_002614
  6. pkgrel=1
  7. pkgdesc="Advanced OpenSource ERP and CRM server"
  8. url=http://openerp.com/
  9. arch=(i686 x86_64)
  10. license=(GPLv3)
  11. conflicts=('openerp-server' 'openerp-web')
  12. depends=('gzip' 'postgresql' 'python2-dateutil' 'python2-feedparser' 'python2-docutils' 'python2-imaging' 'python2-gdata' 'python2-ldap' 'python2-lxml' 'python2-mako' 'python2-openid' 'python2-psutil' 'python2-psycopg2' 'python2-babel' $
  13. source=(
  14. "http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-20130219-002614.tar.gz"
  15. openerp.rc
  16. openerp.confd
  17. openerp.service
  18. )
  19. install=openerp.install
  20.  
  21. build()
  22. {
  23.   cd ${srcdir}/${pkgname}-${pkgver//_/-}
  24.   # Force package data inclusion
  25.   sed -i -e s/#include_package_data/include_package_data/ setup.py
  26.   python2 setup.py install --root="${pkgdir}"
  27.   # Move modules to /usr/share/openerp
  28.   mkdir ${pkgdir}/usr/share -p
  29.   rm -rf ${pkgdir}/usr/openerp
  30.   # Add server configs
  31.   mkdir ${pkgdir}/etc/{rc.d,conf.d,openerp} -p
  32.   mkdir ${pkgdir}/usr/lib/systemd/system/ -p  
  33.   install -Dm 755 ${srcdir}/openerp.rc ${pkgdir}/etc/rc.d/openerp-server
  34.   install -Dm 644 ${srcdir}/openerp.confd ${pkgdir}/etc/conf.d/openerp-server
  35.   install -Dm 644 ${srcdir}/openerp.service ${pkgdir}/usr/lib/systemd/system/openerp-server.service
  36.   cd ${srcdir}/${pkgname}-${pkgver//_/-}/install
  37.   install -Dm 644 openerp-server.conf ${pkgdir}/etc/openerp/openerp-server.conf
  38.   #Install manpages
  39.   mkdir ${pkgdir}/usr/share/man/{man1,man5} -p
  40.   gzip -c openerp-server.1 > openerp-server.1.gz
  41.   gzip -c openerp_serverrc.5 > openerp_serverrc.5.gz
  42.   install -Dm 644  openerp-server.1.gz ${pkgdir}/usr/share/man/man1
  43.   install -Dm 644  openerp_serverrc.5.gz ${pkgdir}/usr/share/man/man5
  44. }
  45. md5sums=('70586578ab17059ace3906d9b5352706'
  46.          '56924dd4c554faf5e80ca82b1f07ad8f'
  47.          'a4ff0e3925ec79426c5a1ea0194fbfde'
  48.          'f1d7565844a3f2bb87e996254dbcd836')
clone this paste RAW Paste Data