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

fixed drush PKGBUILD

By: a guest on May 28th, 2014  |  syntax: None  |  size: 2.25 KB  |  views: 182  |  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. # Original Maintainer: Josh 'jheretic' King <josh at chambana dot net>
  2.  
  3. pkgname=drush
  4. pkgver=6.2.0
  5. pkgrel=1
  6. pkgdesc="The Drupal command-line shell"
  7. arch=('any')
  8. url="http://github.com/drush-ops/drush/"
  9. license=('GPL')
  10. depends=('php' 'bash')
  11. install=${pkgname}.install
  12. replaces=('drush5')
  13.  
  14. source=(http://github.com/drush-ops/$pkgname/archive/$pkgver.tar.gz \
  15. http://download.pear.php.net/package/Console_Table-1.1.3.tgz)
  16.  
  17. build() {
  18.   cd ${srcdir}/${pkgname}-${pkgver}
  19.   install -d ${pkgdir}/usr/lib/${pkgname}/commands
  20.   cp -rf ${srcdir}/${pkgname}-${pkgver}/commands/* ${pkgdir}/usr/lib/${pkgname}/commands/
  21.   install -d ${pkgdir}/usr/lib/${pkgname}/classes
  22.   cp -rf ${srcdir}/${pkgname}-${pkgver}/classes/* ${pkgdir}/usr/lib/${pkgname}/classes/
  23.   install -d ${pkgdir}/usr/lib/${pkgname}/includes
  24.   cp -rf ${srcdir}/${pkgname}-${pkgver}/includes/* ${pkgdir}/usr/lib/${pkgname}/includes/
  25.   install -d ${pkgdir}/usr/share/doc/${pkgname}/examples
  26.   cp -rf ${srcdir}/${pkgname}-${pkgver}/examples/* ${pkgdir}/usr/share/doc/${pkgname}/examples/
  27.   #Install Console_Table library so Drush doesn't have todo
  28.   cp -rf ${srcdir}/Console_Table-1.1.3/Table.php ${pkgdir}/usr/lib/${pkgname}/includes/table.inc
  29.   chmod -x ${pkgdir}/usr/lib/${pkgname}/includes/table.inc
  30.   install -Dm755 ./drush.php ${pkgdir}/usr/lib/drush/drush.php || return 1
  31.   install -Dm755 ./drush ${pkgdir}/usr/lib/drush/drush || return 1
  32.   install -Dm644 ./drush.info ${pkgdir}/usr/lib/drush/drush.info || return 1
  33.   install -Dm644 ./docs/drush.api.php ${pkgdir}/usr/lib/drush/drush.api.php || return 1
  34.   install -Dm644 ./drush_logo-black.png ${pkgdir}/usr/share/doc/drush/drush_logo-black.png || return 1
  35.   install -Dm644 ./examples/example.drushrc.php ${pkgdir}/etc/drush/example.drushrc.php || return 1
  36.   install -Dm644 ./examples/example.aliases.drushrc.php ${pkgdir}/etc/drush/example.aliases.drushrc.php || return 1
  37.   install -Dm644 ./examples/example.drush.ini ${pkgdir}/etc/drush/example.drush.ini || return 1
  38.   mkdir -p ${pkgdir}/usr/bin
  39.   ln -s /usr/lib/drush/drush ${pkgdir}/usr/bin/drush
  40.   #Make directory for eventual packaged drush extensions
  41.   mkdir -p ${pkgdir}/usr/share/drush/commands
  42. }
  43. md5sums=('c2f2c84156a6dd081a3d2a5ebfbfc1a9'
  44.          '34b5f34db1ab0c4daedf2862958af257')
clone this paste RAW Paste Data