SHARE
TWEET

Untitled

a guest Mar 7th, 2017 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- PKGBUILD.old    2017-02-17 00:36:34.000000000 -0500
  2. +++ PKGBUILD.new    2017-03-07 20:07:13.810935967 -0500
  3. @@ -12,20 +12,21 @@
  4.  ### the software) then please do email me or post an AUR comment.
  5.  
  6.  pkgname=editix-free
  7. -pkgver=2016
  8. -pkgrel=2
  9. +_pkgname=editix
  10. +pkgver=2017
  11. +pkgrel=1
  12.  epoch=1
  13.  pkgdesc="EditiX is a powerful and easy to use XML editor, Visual Schema Editor, XQuery Editor and XSLT debugger"
  14.  arch=('any')
  15.  license=('custom')
  16.  depends=('java-runtime')
  17.  url="http://free.editix.com/"
  18. -source=("http://www.editix.com/download/editix$pkgver.tar.gz")
  19. -sha256sums=('55ead1a3eded1779c47a40083575de3aa4ce5ac8bb987371856775e1573e17b5')
  20. +source=("http://www.editix.com/download/editix$pkgver.zip")
  21. +sha256sums=('e6f8e42817b86854085ce6dae55a5d0e5622399f0b8a8140aa318bcacd238e43')
  22.  
  23.  package() {
  24.    # Licenses first, before we move the whole directory to opt
  25. -  cd "$srcdir/editix${pkgver}"
  26. +  cd "${srcdir}/"
  27.    for F in LICENSE.TXT ; do
  28.      # Install to /usr and remove from distribution dir
  29.      install -D -m644 $F "${pkgdir}/usr/share/licenses/${pkgname}/$F"
  30. @@ -36,17 +37,17 @@
  31.  
  32.    # Install the compiled app to /opt
  33.    cd "$srcdir"
  34. -  install -dm755 "$pkgdir/opt/"
  35. -  cp -r editix${pkgver} $pkgdir/opt/
  36. +  install -dm755 "${pkgdir}/opt/${_pkgname}"
  37. +  cp -r * ${pkgdir}/opt/${_pkgname}
  38.  
  39.    # Create a symlink to /usr/bin
  40. -  install -dm755 "$pkgdir/usr/bin/"
  41. -  ln -sf /opt/editix-${pkgver}/bin/editix.sh "$pkgdir/usr/bin/$pkgname"
  42. -  chmod 755 "${pkgdir}/opt/editix${pkgver}/bin/editix.sh"
  43. +  install -dm755 "${pkgdir}/usr/bin/"
  44. +  ln -sf /opt/${_pkgname}/bin/editix.sh "${pkgdir}/usr/bin/${_pkgname}"
  45. +  chmod 755 "${pkgdir}/opt/${_pkgname}/bin/editix.sh"
  46.  
  47.    # Fix the run script
  48. -  sed -e "s|^TOPDIR=.*\$|TOPDIR='/opt/editix${pkgver}/bin/';|g" \
  49. -    -i "${pkgdir}/opt/editix${pkgver}/bin/editix.sh"
  50. -}
  51. +  sed -e "s|^TOPDIR=.*\$|TOPDIR='/opt/${_pkgname}/bin/';|g" \
  52. +    -i "${pkgdir}/opt/${_pkgname}/bin/editix.sh"
  53.  
  54. -# vim:set ts=2 sw=2 et:
  55. +  rm -f ${pkg}/opt/${_pkgname}/${_pkgname}${pkgver}
  56. +}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top