Package Details: jetbrains-resharper-commandlinetools 2024.2.6-2

Git Clone URL: https://aur.archlinux.org/jetbrains-resharper-commandlinetools.git (read-only, click to copy)
Package Base: jetbrains-resharper-commandlinetools
Description: JetBrains ReSharper Command Line Tools
Upstream URL: https://www.jetbrains.com/resharper
Licenses: custom:jetbrains
Submitter: walwe
Maintainer: walwe
Last Packager: walwe
Votes: 0
Popularity: 0.000000
First Submitted: 2024-10-16 06:56 (UTC)
Last Updated: 2024-10-24 06:27 (UTC)

Latest Comments

walwe commented on 2024-10-24 06:29 (UTC)

Added your suggestion

Thank you

MarkusG commented on 2024-10-23 20:22 (UTC) (edited on 2024-10-23 21:49 (UTC) by MarkusG)

Package is broken. /usr/bin/cleanupcode and /usr/bin/inspectcode call shells scripts that do not exist. It looks like they're supposed to reside in /opt/jetbrains-resharper-commandlinetools but the directory is empty. Here is a functioning PKGBUILD

# Maintainer: walwe <aur@walwe.de>
# Contributor: Mark Gross <mark.gross2001@gmail.com>

pkgname=jetbrains-resharper-commandlinetools
pkgver=2024.2.6
pkgrel=2
pkgdesc="JetBrains ReSharper Command Line Tools"
arch=('x86_64')
url="https://www.jetbrains.com/resharper"
license=('custom:jetbrains')
depends=('dotnet-sdk')
source=("https://download-cdn.jetbrains.com/resharper/dotUltimate.${pkgver}/JetBrains.ReSharper.CommandLineTools.${pkgver}.zip")
sha256sums=('b71d9d2c4793ef293107d1c01fdaa887179311a9a3b44c81e7f42328b1689447') 

prepare() {
    # patch scripts to reference the correct directory
    sed -Ei 's/\$\(dirname "\$0"\)/"\/opt\/'"$pkgname"'"/g' "$srcdir/cleanupcode.sh" "$srcdir/inspectcode.sh"
}

package() {
    install -d "$pkgdir/opt/$pkgname"
    cp -r "$srcdir/"* "$pkgdir/opt/$pkgname"

    # create symlinks in /usr/bin
    install -d "$pkgdir/usr/bin"
    ln -s "/opt/$pkgname/cleanupcode.sh" "$pkgdir/usr/bin/cleanupcode"
    ln -s "/opt/$pkgname/inspectcode.sh" "$pkgdir/usr/bin/inspectcode"
}