summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e0ae54199791fdc69a49df1a84e4ab3c3bb330a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Please report issues at https://github.com/sanduhrs/arch-aur-phpcov

pkgname=phpcov
pkgver=6.0.1
pkgrel=1
pkgdesc="A command-line frontend for the PHP_CodeCoverage library."
url="https://github.com/sebastianbergmann/phpcov"
arch=("any")
license=("BSD")
depends=("php")
install="${pkgname}.install"
source=("https://phar.phpunit.de/${pkgname}-${pkgver}.phar"
        "https://raw.githubusercontent.com/sebastianbergmann/${pkgname}/${pkgver}/LICENSE")
sha512sums=('0f6e0bb87abe288b7982bea6e8ac3d3b79bbfc9165246a486d85ece515fec829e7c089ff4efdc8fcb7ff516b13f406c44aaeab4d9ad8b9c4cd021d6bc2f36241'
            '1d98aae16f8fde4d1d1028050acbef7a0d5ed975e1136589070161ff019d29c8cfac69b42896c8c5edd2a2baeadbe39d7f110d821b3226c94b928e961ddcf302')

package() {
  install -D -m 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m 755 "${srcdir}/${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}"
}