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

drush-4.1 PKGBUILD

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