blob: c5bf3cb6d9c74d5537e61143565c85c7f0521931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Stefan Auditor <stefan@auditor.email>
pkgname=drush-launcher
pkgver=0.10.2
pkgrel=2
pkgdesc='A small wrapper around Drush for your global $PATH.'
arch=('any')
url="https://github.com/drush-ops/drush-launcher"
license=('GPL')
depends=('php')
makedepends=('composer' 'git' 'php-box')
conflicts=('drush' 'drush-git' 'drush-launcher-git')
source=("${pkgname}"::"git+https://github.com/drush-ops/drush-launcher.git#tag=${pkgver}")
md5sums=('SKIP')
prepare() {
cd "${srcdir}/${pkgname}"
composer --no-interaction install --prefer-source
}
build() {
cd "${srcdir}/${pkgname}"
php -d phar.readonly=Off /usr/bin/box compile
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm755 drush.phar "${pkgdir}/usr/bin/drush"
}
|