# Maintainer: Johannes Schleifenbaum # Please report issues at https://github.com/jojosch/pkgbuilds pkgname="phpmd" pkgver=2.13.0 pkgrel=1 pkgdesc="Takes a given PHP source code base and look for several potential problems within that source." url="http://phpmd.org/" license=("BSD") arch=("any") depends=("php>=5.3.9") source=( "${pkgname}-${pkgver}.phar::https://github.com/phpmd/phpmd/releases/download/${pkgver}/phpmd.phar" "LICENSE" ) install="${pkgname}.install" sha256sums=('2cd47ba93dca22121eabd58f757546b27bb3cd7378cdefe3b83329b7529efc0d' 'faad499ee7fe2e75e18565c6b6b5cf43a3dc97a6eebffbfa5840d9205339fa9b') package() { cd "${srcdir}" install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m755 "${pkgname}-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/${pkgname}.phar" install -d "${pkgdir}/usr/bin" ln -s "/usr/share/webapps/bin/${pkgname}.phar" "${pkgdir}/usr/bin/${pkgname}" }