diff options
author | Matheus | 2022-11-08 14:54:52 +0100 |
---|---|---|
committer | Matheus | 2022-11-08 14:54:52 +0100 |
commit | 87f434a2d53a300dae15ae26a28af6dae0eb6da1 (patch) | |
tree | b8965b78a59f0e767596bf3bcee9a8c870fb3ab4 | |
parent | e768248375fe095541016fe05509e54985cde6f0 (diff) | |
download | aur-87f434a2d53a300dae15ae26a28af6dae0eb6da1.tar.gz |
Update.
-rwxr-xr-x | .SRCINFO | 17 | ||||
-rwxr-xr-x | PKGBUILD | 15 |
2 files changed, 28 insertions, 4 deletions
@@ -10,20 +10,33 @@ pkgbase = matomo-git makedepends = curl makedepends = git makedepends = git-lfs + makedepends = npm + depends = alsa-lib + depends = at-spi2-core + depends = gtk3 depends = java-runtime + depends = lib32-glibc + depends = nodejs + depends = nss + depends = perl depends = php depends = php-fpm depends = php-gd - depends = perl - depends = python + depends = python-beautifulsoup4 + depends = python-pillow depends = python-requests depends = python-yaml + depends = ruby + depends = zsh + depends = coffeescript + depends = rhino optdepends = apache: HTTP server optdepends = certbot: Creates SSL certificates. optdepends = mariadb: Database optdepends = nginx: HTTP server provides = matomo conflicts = matomo + options = !strip source = matomo::git+https://github.com/matomo-org/matomo.git#tag=866da57b5acc69037c82ee147848d16b0b5248ef source = git+https://github.com/matomo-org/matomo-icons.git source = git+https://github.com/matomo-org/matomo-log-analytics.git @@ -15,14 +15,15 @@ pkgdesc="A powerful web analytics platform." arch=("any") url="https://github.com/matomo-org/${_pkgname}" license=("GPL3") -depends=("bash" "java-runtime" "php" "php-fpm" "php-gd" "perl" "python" "python-beautifulsoup4" "python-pillow" "python-requests" "python-yaml") -makedepends=("composer" "curl" "git" "git-lfs") +depends=("alsa-lib" "at-spi2-core" "coffeescript" "gtk3" "java-runtime" "lib32-glibc" "nodejs" "nss" "perl" "php" "php-fpm" "php-gd" "python-beautifulsoup4" "python-pillow" "python-requests" "python-yaml" "rhino" "ruby" "zsh") +makedepends=("composer" "curl" "git" "git-lfs" "npm") optdepends=("apache: HTTP server" "certbot: Creates SSL certificates." "mariadb: Database" "nginx: HTTP server") provides=("${_pkgname}") conflicts=("matomo") +options=("!strip") # TODO install="${_pkgname}.install" source=("${_pkgname}::git+${url}.git#tag=${_tag}" "git+https://github.com/matomo-org/matomo-icons.git" @@ -126,6 +127,16 @@ build() { cd "${srcdir}"/"${_pkgname}"/ || exit 1 composer install --no-dev + + _package_jsons="$(find "${srcdir}"/"${_pkgname}"/ -name package.json -type f)" + readarray -t _package_json_array <<< "${_package_jsons}" + + for _package_json in "${_package_json_array[@]}"; do + if [[ "${_package_json}" != "${srcdir}"/"${_pkgname}"*/node_modules/* ]]; then + cd "$(dirname "${_package_json}")" || exit 1 + npm install + fi + done } package() |