Skip to content

Commit

Permalink
semgrep: fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Jan 11, 2024
1 parent cd6ff99 commit e7d299e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/semgrep/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sha512sums=('fd3ff2fc846de44dfbab04530d07a513673f08114b6c79269f5277bd3724adecc8a
build() {
cd "$pkgname-$pkgver"

export SEMGREP_CORE_BIN="$srcdir/$pkgname-$pkgver.data/purelib/semgrep/bin/semgrep-core"
export SEMGREP_CORE_BIN="$srcdir/$pkgname-$pkgver.data/purelib/$pkgname/bin/$pkgname-core"

python -m build --wheel --outdir="$startdir/dist"
}
Expand All @@ -49,12 +49,12 @@ package() {
"$pkgname"

install -Dm 555 \
"$srcdir/$pkgname-$pkgver.data/purelib/semgrep/bin/semgrep-core" \
"$pkgdir/usr/lib/python$_pyver/site-packages/$pkgname/bin/semgrep-core"
strip "$pkgdir/usr/lib/python$_pyver/site-packages/$pkgname/bin/semgrep-core"
"$srcdir/$pkgname-$pkgver.data/purelib/$pkgname/bin/$pkgname-core" \
"$pkgdir/usr/lib/python$_pyver/site-packages/$pkgname/bin/$pkgname-core"
strip "$pkgdir/usr/lib/python$_pyver/site-packages/$pkgname/bin/$pkgname-core"

# semgrep sg binary conflicts with shadow sg binary
# https://github.com/semgrep/semgrep/issues/9571
mv "$pkgdir/usr/bin/sg" "$pkgdir/usr/bin/semgrep-sg"
mv "$pkgdir/usr/bin/sg" "$pkgdir/usr/bin/$pkgname-sg"
}

0 comments on commit e7d299e

Please sign in to comment.