de linuxmanr4, 3 años han pasado desde su publicación, escrito en Plain Text.
Este código es una respuesta a haroopad 1 de linuxmanr4
- ver diferencias
Enlace corto
http://gw.gd/BPf3
Insertar vínculo
  1. # Maintainer:  Shaw <puxx@mail.ustc.edu.cn>
  2. # Contributor: Julien Nicoulaud <julien.nicoulaud@gmail.com>
  3.  
  4. pkgname=haroopad
  5. pkgver=0.10.0
  6. pkgrel=2
  7. pkgdesc="A markdown enabled document processor"
  8. arch=('i686' 'x86_64')
  9. url="http://pad.haroopress.com/"
  10. license=('unknown')
  11. depends=('xdg-utils'
  12.          'desktop-file-utils'
  13.          'hicolor-icon-theme'
  14.          'gconf'
  15.          'alsa-lib'
  16.          'gtk2'
  17.          'nss')
  18. options=('!strip')
  19. install=${pkgname}.install
  20. changelog=changelog
  21. source=("https://www.dropbox.com/s/z0bapcxguzgh8df/${pkgname}-v${pkgver}-i386.deb"
  22.             "Haroopad.desktop"
  23.             "x-markdown.xml")
  24. md5sums=('1fdc98327e3aab709731ab8c33b6f066'
  25.          'e90a647dbc32075d10cacf0c4b79e520'
  26.          'cabb3edd5c2f03a6ea89caccbd396d90')
  27.  
  28. PKGEXT=.pkg.tar
  29.  
  30. if [[ ${CARCH} = x86_64 ]]; then
  31.         source[0]="https://www.dropbox.com/s/6zkglx8v2j3dimx/${pkgname}-v${pkgver}_amd64.deb"
  32.         md5sums[0]='77ef10d9594a130cc469a2b58f4f1481'
  33. fi
  34.  
  35. build() {
  36.         cd "${srcdir}"
  37.         tar -zxf data.tar.gz
  38. }
  39.  
  40. package() {
  41.         cd "${srcdir}"
  42.         cp -r "${srcdir}/usr" "${pkgdir}/usr"
  43.         rm "${pkgdir}/usr/share/applications/mimeapps.list"
  44.         rm "${pkgdir}/usr/share/applications/Haroopad.desktop"
  45.         mkdir "${pkgdir}/usr/share/doc/haroopad/"
  46.         mv "${pkgdir}/usr/share/doc/changelog" \
  47.            "${pkgdir}/usr/share/doc/copyright" \
  48.            "${pkgdir}/usr/share/doc/haroopad/"
  49.         install -Dm644 Haroopad.desktop "${pkgdir}/usr/share/applications/Haroopad.desktop"
  50. }