summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d9b929894f82c7db26defc1360a4f01e78a7a50 (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
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Please report issues at https://github.com/sanduhrs/arch-aur-drupal-check

_pkgname=drupal-check
pkgname=${_pkgname}
pkgver=1.0.12
pkgrel=2
pkgdesc="Check Drupal code for deprecations and discover bugs via static analysis."
arch=('any')
url="https://github.com/mglaman/drupal-check"
license=('GPL')
depends=('php')
makedepends=("php-box" "php-composer" "git")
source=("${_pkgname}::git+${url}.git#tag=${pkgver}")
sha512sums=('SKIP')

build() {
  cd "${srcdir}/${_pkgname}"
  php /usr/bin/composer install --prefer-dist

  ulimit -Sn 2048
  php -d phar.readonly=Off /usr/bin/php-box build
}

package() {
  cd "${srcdir}/${_pkgname}"
  install -D -m755 "${_pkgname}.phar" "${pkgdir}/usr/bin/${_pkgname}"
}