summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd8d62596b014c2236ac8d6cc473ae0418290921 (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>
# Contributor: Joris Steyn <jorissteyn@gmail.com>
# Please report issues at https://github.com/sanduhrs/arch-aur-phploc

pkgname=phploc
pkgver=4.0.0
pkgrel=1
pkgdesc="A tool for quickly measuring the size of a PHP project"
url="https://github.com/sebastianbergmann/phploc"
arch=("any")
license=("BSD")
depends=("php")
source=("https://phar.phpunit.de/${pkgname}-${pkgver}.phar"
        "https://raw.githubusercontent.com/sebastianbergmann/${pkgname}/${pkgver}/LICENSE")
sha512sums=('35f50ed09d458f60d756824c208dca8024dc81967f1586cc682cdf464217fd830aa93c49a67ec78ae3c004d50b28ba242f44acfcda8451d9ce9a29b25dce813a'
            'd5d9e23d15533e1989eda7fa0c942717631e8ce18b929dfb0d7824060edbe6eaae76fbb0150b81a334ba46dfd5d2865e6f771e84cbd1d3db0faee5d16e4dc992')

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