diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Sat Jan 16 14:03:09 UTC 2016 +# Fri Jan 22 08:47:25 UTC 2016 pkgbase = drush-git-alternative pkgdesc = Drush is a command line shell and Unix scripting interface for Drupal pkgver = 8.0.2.r14.g30f88b2 @@ -13,7 +13,7 @@ pkgbase = drush-git-alternative depends = php provides = drush=8.0.2.r14.g30f88b2 conflicts = drush - source = drush-8.0.2.r14.g30f88b2::git+https://github.com/drush-ops/drush.git + source = drush::git+https://github.com/drush-ops/drush.git sha512sums = SKIP pkgname = drush-git-alternative @@ -12,23 +12,23 @@ depends=('php') makedepends=("php-box" "php-composer" "git") provides=("${_pkgname}=${pkgver}") conflicts=("${_pkgname}") -source=("${_pkgname}-${pkgver}"::"git+https://github.com/drush-ops/drush.git") +source=("${_pkgname}"::"git+https://github.com/drush-ops/drush.git") sha512sums=('SKIP') pkgver() { - cd "${_pkgname}-${pkgver}" + cd "${_pkgname}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/${_pkgname}" php /usr/bin/composer install --no-dev cp box.json.dist box.json php -d phar.readonly=Off /usr/bin/php-box build } package() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/${_pkgname}" install -D -m755 "${_pkgname}.phar" "${pkgdir}/usr/bin/${_pkgname}" install -D -m644 "examples/example.aliases.drushrc.php" "${pkgdir}/etc/drush/aliases.drushrc.php" install -D -m644 "examples/example.drush.ini" "${pkgdir}/etc/drush/drush.ini" |