summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 804eca6e2174d0e61fc01c7374da80677aa5283f (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.1.1
pkgrel=1
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-humbug-box-bin" "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/box compile
}

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