updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / drush / PKGBUILD
blobf24c70d73a255c217eb5d75cbdae258180787c0d
1 # Maintainer: Josh 'jheretic' King <josh at chambana dot net>
3 pkgname=drush
4 pkgver=4.5
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-7.x-$pkgver.tar.gz \
13 http://download.pear.php.net/package/Console_Table-1.1.3.tgz)
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
41 md5sums=('f6df0593c3d3c9a5a2d0bb382bf629ba'
42          '34b5f34db1ab0c4daedf2862958af257')