diff options
author | Marat Moustafine | 2016-12-02 21:53:36 +0300 |
---|---|---|
committer | Marat Moustafine | 2016-12-02 21:53:36 +0300 |
commit | 19f787673a5a6422d6c3e38f1f5e2dc8fba3b3c0 (patch) | |
tree | 5f623046b738d48e1dac3a605622409da0cdfa43 /PKGBUILD | |
download | aur-19f787673a5a6422d6c3e38f1f5e2dc8fba3b3c0.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..78ec18278dd9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Marat Moustafine <m-dash-moustafine-at-yandex-dot-ru> + +_pkgname=how-to-use-pvs-studio-free +pkgname=$_pkgname-git +pkgver=latest +pkgrel=1 +pkgdesc='An utility that adds special comments to a source code for analyzing the code by PVS-Studio for free' +arch=('i686' 'x86_64') +url=https://github.com/viva64/$_pkgname +license=('APACHE') +makedepends=('cmake' 'git') +optdepends=('pvs-studio: for the PVS-Studio code analyzer') +provides=($_pkgname) +conflicts=($_pkgname) +source=(git+$url.git + add-comments-to-headers-too.patch) +sha256sums=('SKIP' + '8de3ba2cc20f9752edc2e9932a6bc2c92bec2fddc24ee5c01a9fd587c93c6878') + +pkgver() { + cd $_pkgname + git describe --long --tags | sed -r 's/^v//;s/-/+/g' +} + +# prepare() { +# cd $_pkgname +# patch -p1 -i $srcdir/${source[1]} +# } + +build () { + cd $_pkgname + mkdir -p build + + cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. + make +} + +package() { + cd $_pkgname/build + make DESTDIR=$pkgdir install +} |