summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57a030185599f86ec0502299be60296b324f76d6 (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
# Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
# Please report issues at https://github.com/jojosch/pkgbuilds

_basename="deprecation-detector"
_tag="0.1.0-alpha4"
pkgname="php-${_basename}"
pkgver=${_tag/\-/\.}
pkgrel=3
pkgdesc="static code analyzer for your project's source code to find usages of deprecated methods, classes and interfaces"
url="https://github.com/sensiolabs-de/deprecation-detector"
license=("MIT")
arch=("any")
depends=("php>=5.3.9")
source=(
    "deprecation-detector-${_tag}.phar::https://github.com/sensiolabs-de/deprecation-detector/releases/download/${_tag}/deprecation-detector.phar"
    "https://raw.github.com/sensiolabs-de/deprecation-detector/${_tag}/LICENSE"
)
sha256sums=(
    "caf6a5c0ff93d68497859386e0ff11a7754390a712dfa50527e7d5108de9e92a"
    "SKIP"
)

package() {
  cd "${srcdir}/"

  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D -m755 "deprecation-detector-${_tag}.phar" "${pkgdir}/usr/share/webapps/bin/${_basename}.phar"
  install -d "${pkgdir}/usr/bin"
  ln -s "/usr/share/webapps/bin/${_basename}.phar" "${pkgdir}/usr/bin/${_basename}"
}