# Maintainer: Stefan Auditor # Contributor: Victor Häggqvist # Please report issues at https://github.com/sanduhrs/arch-aur-drupalconsole-git _pkgname=drupalconsole pkgname=${_pkgname}-git pkgver=0.10.12.r53.gbc01b5d pkgrel=1 pkgdesc="The Drupal Console is a suite of tools that you run on a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 installation." arch=('any') url="http://drupalconsole.com/" license=('GPL') depends=('php') makedepends=("php-box" "php-composer" "git") provides=("${_pkgname}=${pkgver}") conflicts=("${_pkgname}") install="${_pkgname}.install" source=("${_pkgname}"::"git+https://github.com/hechoendrupal/DrupalConsole.git") sha512sums=('SKIP') pkgver() { cd "${_pkgname}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${srcdir}/${_pkgname}" ulimit -n 4096 php /usr/bin/composer install --no-dev php -d phar.readonly=Off /usr/bin/php-box build } package() { cd "${srcdir}/${_pkgname}" install -D -m755 "drupal.phar" "${pkgdir}/usr/bin/drupal" }