summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63147fd08f188988cfa1aeb9cb043402ffdc51d1 (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
29
30
31
32
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>

_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}"
}