blob: 89bed347e03df95bb43a07d797423d867d03b4b5 (
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
|
# 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
}
|