# Maintainer: Stefan Auditor _pkgname=phpqa pkgname=${_pkgname} pkgver=0.1.0 pkgrel=1 pkgdesc="PHPQA all-in-one Analyzer CLI tool." arch=("any") url="https://github.com/jmolivas/phpqa" license=("MIT") depends=("php") makedepends=("php-box" "php-composer" "git") source=("${_pkgname}"::"git+https://github.com/jmolivas/phpqa.git") sha512sums=('SKIP') pkgver() { cd "${_pkgname}" git describe --abbrev=0 --tags } build() { cd "${srcdir}/${_pkgname}" php /usr/bin/composer install --no-dev } package() { cd "${srcdir}" install -d "${pkgdir}/usr/share/webapps/${_pkgname}" cp -r "${_pkgname}" "${pkgdir}/usr/share/webapps/" install -d "${pkgdir}/usr/bin" ln -s "/usr/share/webapps/${_pkgname}/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" }