blob: d39ca6437147858dacbda5468775b201beb90318 (
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.192
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=('E1D21660F24976D1817F3F110675443F8922704D57B4F126A207387EC5194A93')
package() {
_pkg=DevSkim_linux_${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
}
|