diff options
author | begin-theadventure | 2023-08-29 17:28:04 +0200 |
---|---|---|
committer | begin-theadventure | 2023-08-29 17:28:04 +0200 |
commit | 0d74605aea00c6b576976ccfe7c6bdc29ff98c06 (patch) | |
tree | 59abf587ed92a9b0ae5b3995e506f1972e7f87ac | |
parent | 60d30ebe50e50e0d039353caa747f9c2587e2bc3 (diff) | |
download | aur-0d74605aea00c6b576976ccfe7c6bdc29ff98c06.tar.gz |
Clean up, mv instead of cp
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 15 insertions, 17 deletions
@@ -1,13 +1,14 @@ pkgbase = application-inspector-bin pkgdesc = Microsoft ApplicationInspector is a source code analyzer built for surfacing features of interest and other characteristics to answer the question 'what's in it' using static analysis with a json based rules engine (official CLI binary version) pkgver = 1.9.10 - pkgrel = 1 + pkgrel = 2 url = https://github.com/microsoft/ApplicationInspector install = application-inspector-bin.install arch = x86_64 license = MIT depends = dotnet-runtime provides = application-inspector + conflicts = application-inspector options = staticlibs source = https://github.com/microsoft/ApplicationInspector/releases/download/v1.9.10/ApplicationInspector_linux_1.9.10.zip sha256sums = a040b2d88033cd8a20b4a081a6bba446d7c4d8c5e8a3e54dbff12ae225c9d322 @@ -1,31 +1,28 @@ # Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com> # Contributor: François-Xavier Bru <francoisxavier.bru at orange dot com> -pkgname=application-inspector-bin _pkgname=application-inspector +pkgname=$_pkgname-bin pkgver=1.9.10 -pkgrel=1 +pkgrel=2 pkgdesc="Microsoft ApplicationInspector is a source code analyzer built for surfacing features of interest and other characteristics to answer the question 'what's in it' using static analysis with a json based rules engine (official CLI binary version)" arch=('x86_64') url="https://github.com/microsoft/ApplicationInspector" license=('MIT') -provides=('application-inspector') depends=(dotnet-runtime) +conflicts=($_pkgname) +provides=($_pkgname) options=(staticlibs) -source=(https://github.com/microsoft/ApplicationInspector/releases/download/v${pkgver}/ApplicationInspector_linux_${pkgver}.zip) +source=($url/releases/download/v$pkgver/ApplicationInspector_linux_$pkgver.zip) sha256sums=('a040b2d88033cd8a20b4a081a6bba446d7c4d8c5e8a3e54dbff12ae225c9d322') -install=${pkgname}.install +install=$pkgname.install package() { - _pkg=ApplicationInspector_linux_${pkgver} - - install -d "${pkgdir}/usr/bin" - install -d "${pkgdir}/opt/${_pkgname}" - - cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${_pkgname}" - chmod -R g+w "${pkgdir}/opt/${_pkgname}" - chmod +x ${pkgdir}/opt/${_pkgname}/ApplicationInspector.CLI - ln -s /opt/${_pkgname}/ApplicationInspector.CLI "${pkgdir}"/usr/bin/ApplicationInspector - ln -s /opt/${_pkgname}/ApplicationInspector.CLI "${pkgdir}"/usr/bin/application-inspector + # Create folders + mkdir -p "$pkgdir/opt/ApplicationInspector" "$pkgdir/usr/bin" + # Install + mv ApplicationInspector_linux_$pkgver/* "$pkgdir/opt/ApplicationInspector" + chmod -R g+w "$pkgdir/opt/ApplicationInspector" + chmod +x "$pkgdir/opt/ApplicationInspector/ApplicationInspector.CLI" + ln -s /opt/ApplicationInspector/ApplicationInspector.CLI "$pkgdir/usr/bin/$_pkgname" } - |