blob: a29917d700224fae5db48aeb84d2411249a49d57 (
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
|
# Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
# Please report issues at https://github.com/jojosch/pkgbuilds
pkgname="phpdcd"
pkgver=1.0.2
pkgrel=5
pkgdesc="Dead Code Detector (DCD) for PHP code."
url="https://github.com/sebastianbergmann/phpdcd"
license=("BSD")
arch=("any")
depends=("php>=5.3.3")
source=(
"https://phar.phpunit.de/${pkgname}-${pkgver}.phar"
"LICENSE"
)
install="${pkgname}.install"
sha256sums=('28301205d671a6e564e72c5b249ef31600d1fdda6958b35bd2a9b2e0f2f54ede'
'fc0ec35ca43801ccb61680b806558bae66301750e25046c7b5633c239855a87d')
package() {
cd "${srcdir}"
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m755 "${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}"
}
|