diff options
author | fxbru | 2020-04-07 18:08:16 +0200 |
---|---|---|
committer | fxbru | 2020-04-07 18:08:16 +0200 |
commit | d8249a9ef9af23b1d062b6d3b3429676a2e55439 (patch) | |
tree | 1959bbfc56a45d4af832f785f5e00455fe720aea /PKGBUILD | |
download | aur-d8249a9ef9af23b1d062b6d3b3429676a2e55439.tar.gz |
0.4.118-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..89bed347e03d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: François-Xavier Bru <francoisxavier/dot/bru/at/orange/dot/com> +pkgname=devskim-cli-bin +_pkgname=devskim +pkgver=0.4.118 +pkgrel=1 +pkgdesc="Microsoft DevSkim is a set of IDE plugins and rules that provide security \"linting\" capabilities (official CLI binary version)" +arch=('x86_64') +url="https://github.com/Microsoft/DevSkim/" +license=('MIT') +provides=('devskim-cli') +depends=(dotnet-runtime) +options=(staticlibs) +source=(https://github.com/microsoft/DevSkim/releases/download/v${pkgver}/DevSkim_linux_${pkgver}.zip) +sha256sums=('3B6A50381D96447F7516771E743F3253069B5E95E53B9336E5035CDF6BACE1EF') + +package() { + _pkg=DevSkim_${pkgver} + + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/opt/${_pkgname}" + + cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${_pkgname}" + chmod +x ${pkgdir}/opt/${_pkgname}/devskim + ln -s /opt/${_pkgname}/devskim "${pkgdir}"/usr/bin/devskim +} + |