blob: ceecc6f2370668edb4addcaa668ca06307b63ecf (
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
|
# Maintainer: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de>
# Please report issues at https://github.com/jojosch/pkgbuilds
_pkgbase=security-checker
pkgname="php-${_pkgbase}"
pkgver=4.1.1
pkgrel=1
pkgdesc="PHP frontend for security.sensiolabs.org"
url="https://github.com/sensiolabs/security-checker"
license=("MIT")
arch=("any")
depends=("php>=5.3.3")
makedepends=("php-box" "php-composer")
source=(
"https://github.com/sensiolabs/${_pkgbase}/archive/v${pkgver}.zip"
)
sha256sums=(
"9d562c05f0a00a474bd8b082c600dcfca8c573923fef0659ef480ee39e0ee818"
)
build() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
composer install --prefer-dist
php -d phar.readonly=Off /usr/bin/php-box build
}
package() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m755 "${_pkgbase}.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}"
}
|