blob: 34cd412748262a4cfe82c20d4e8dd471e4a58654 (
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
36
37
38
39
40
41
42
43
|
# Maintainer: Amin Vakil <info at aminvakil dot com>
_pkgname=tsunami-security-scanner-plugins
pkgname=google-tsunami-security-scanner-plugins-git
pkgver=r691.9c56f2ec
pkgrel=1
pkgdesc="A central repository for many useful Tsunami Security Scanner plugins"
arch=(any)
url="https://github.com/google/tsunami-security-scanner-plugins"
license=('Apache')
makedepends=('git')
depends=('jre11-openjdk')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
for plugin_dir in $(find ${srcdir} -name 'gradlew' -print0 | xargs -0 -n1 dirname | sort --unique) ; do
plugin_name="${plugin_dir##*"${srcdir}/"}"
printf "\nBuilding ${plugin_name} ...\n"
pushd "${plugin_dir}" >/dev/null
./gradlew build -x test
popd >/dev/null
done
}
package() {
appdir="${pkgdir}/opt/${_pkgname}"
mkdir -p "${appdir}"
readarray -d '' jar < <(find "${srcdir}" -name '*.jar' -print0)
for jar_path in "${jar[@]}" ; do
jar_filename="${jar_path##*/}"
install ${jar_path} "${appdir}/${jar_filename}"
done
}
|