blob: 6b324e024ce0dd9e116b25a57498a904b7df1e0e (
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
|
# Maintainer: Razykov Vyacheslav <v.razykov@gmail.com>
# Contributor: Marat Moustafine <moustafine-@t-tuta-d.t-io>
pkgname=pvs-studio
pkgver=7.34.87460.207
pkgrel=1
pkgdesc='Static code analyzer for C and C++'
arch=('pentium4' 'x86_64')
url=http://www.${pkgname}.com/en/${pkgname}
license=('custom:pvs-studio')
depends_pentium4=('qemu-headless-arch-extra')
optdepends=('how-to-use-pvs-studio-free: for adding special comments to a source code'
'bash-completion: for bash completion'
'strace: for analyzing via using strace logs')
options=('!strip' '!debug')
install=${pkgname}.install
_name=${pkgname}-${pkgver}-x86_64
source=(${_name}.tgz::https://files.${pkgname}.com/${_name}.tgz)
source_pentium4=(${pkgname}.binfmt.d)
sha256sums=('2c6d997e687ef80af9b579601666e17dd0185eac5d58abdbaf52837e825ce362')
sha256sums_pentium4=('fd7b1f7b48aa84205c1c0f60f630f1a33504e0e4904c5b0e8ae2477494899c97')
package() {
# binfmt for pentium4
if [ $CARCH == ${arch[0]} ]; then
install -Dm644 ${pkgname}.binfmt.d ${pkgdir}/usr/lib/binfmt.d/${pkgname}.conf
fi
# PVS-Studio
install -Dm755 -t ${pkgdir}/usr/bin \
${_name}/bin/${pkgname} \
${_name}/bin/${pkgname}-analyzer \
${_name}/bin/plog-converter
# Bash completion
install -Dm644 ${_name}/etc/bash_completion.d/${pkgname}.sh \
${pkgdir}/etc/bash_completion.d/${pkgname}.sh
# License
install -Dm644 ${_name}/share/doc/${pkgname}/License.txt \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|