Skip to content

Commit

Permalink
sonar-scanner: fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Nov 26, 2024
1 parent 44e57a1 commit 4292865
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/sonar-scanner/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ source=("https://binaries.sonarsource.com/Distribution/$pkgname-cli/$pkgname-cli
"$pkgname.install")
sha512sums=('4da4447df630270738ee0a803bfd1d081e0c29a0783572eebada186dd808f2fd26b60de29df9cb6d284279cad215a708d3678aee8dbcbbe1f8f924ac2a267372'
'd31374e9cf8a7e814655b1e4dca0496e90f973b87df056fa84756b4824cd59dabe0dcf4419f0ff6428e3cb43707d6586be07ec7de31d9c39a828bb18808d0fcd'
'5f54133c386fe7d93618df04abe12105d846ca24f9f0706ea02055013f9623641281d8e70507afd6f04a77c98e7af11ed9ed3ef346ed4abe728b069e4f1a57f4')
'2fb90b424ba2d881fe80f24055d0299a8782004218373982bbf222f764c9b91983ba56411fd79ce289a6c71447c16d6c93be06dfc301ed2fbb40a614e06a0901')

package() {
install -Dm755 --target-directory="$pkgdir/etc/profile.d/" "$pkgname.sh"

cd "$pkgname-$pkgver"
install -Dm755 --target-directory="$pkgdir/opt/$pkgname/bin/" "bin/$pkgname"
install -Dm644 --target-directory="$pkgdir/opt/$pkgname/lib/" "lib/$pkgname-cli-$pkgver.jar"
install -Dm644 --target-directory="$pkgdir/opt/$pkgname/conf/" "conf/sonar-scanner.properties"

install -Dm 755 -t "$pkgdir/etc/profile.d/" "$srcdir/$pkgname.sh"

install -Dm 755 -t "$pkgdir/opt/$pkgname/bin/" "bin/$pkgname"
install -Dm 644 -t "$pkgdir/opt/$pkgname/lib/" "lib/$pkgname-cli-$pkgver.jar"
install -Dm 644 -t "$pkgdir/opt/$pkgname/conf/" \
"conf/sonar-scanner.properties"

ln -sf "/opt/$pkgname/conf" "$pkgdir/etc/$pkgname"
}

5 changes: 5 additions & 0 deletions packages/sonar-scanner/sonar-scanner.install
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ post_install() {
echo 'https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/'
echo
}

post_upgrade() {
post_install "$@"
}

0 comments on commit 4292865

Please sign in to comment.