blob: 0688dc5a2252c957cade1cf657d0280d62a2c85a (
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
31
32
33
34
35
|
# Maintainer: Leo <i@setuid0.dev>
pkgname=phan
pkgver=5.4.5
pkgrel=1
pkgdesc="Static analyzer for PHP that prefers to minimize false-positives."
url="https://github.com/phan/phan/wiki"
arch=("any")
license=("MIT")
depends=("php>=7.2.0" "php-ast>=1.0.16")
source=(
"${pkgname}-${pkgver}.phar::https://github.com/phan/phan/releases/download/${pkgver}/phan.phar"
"https://raw.githubusercontent.com/phan/phan/${pkgver}/LICENSE"
)
sha256sums=(
'e9939dc05ba3753b0460cb7de522104def88e692a58c05334da8982fd28f21aa'
SKIP
)
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}"
}
|