summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb10aa9f840e61b4847359a3689134a6b2fdea76 (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
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Please report issues at https://github.com/sanduhrs/arch-aur-cmsscanner

_pkgname=cmsscanner
pkgname="${_pkgname}"
pkgver=0.5.0
pkgrel=1
pkgdesc='Detects FOSS CMS in the local filesystem'
arch=('any')
url='https://github.com/CMS-Garden/cmsscanner'
license=('MIT')
depends=('php')
makedepends=('php-box' 'php-composer' 'git')
source=("${_pkgname}::git+https://github.com/CMS-Garden/cmsscanner.git#tag=${pkgver}")
sha512sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}"
  php /usr/bin/composer install --no-dev
  php -d phar.readonly=Off /usr/bin/php-box build
}

package() {
  cd "${srcdir}/${pkgname}"
  install -Dm755 "${_pkgname}.phar" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}