summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69f20afe8dc5a9ce538860387610deec5eed18ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Contributor: Joris Steyn <jorissteyn@gmail.com>
pkgname=phploc
pkgver=2.1.3
pkgrel=2
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/phploc-${pkgver}.phar"
        "https://raw.githubusercontent.com/sebastianbergmann/phploc/${pkgver}/LICENSE")
md5sums=('4304b744b31f44d5f476b2654caaade5'
         '9efd7ec2636b1412c93a29f62c9a4e0b')

package() {
  install -D -m 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
  install -D -m 755 "${srcdir}/phploc-${pkgver}.phar" "${pkgdir}/usr/share/webapps/bin/phploc.phar"
  install -d "${pkgdir}/usr/bin"
  ln -s /usr/share/webapps/bin/phploc.phar "${pkgdir}/usr/bin/phploc"
}