Skip to content

Commit

Permalink
impacket: rename package to avoid collision
Browse files Browse the repository at this point in the history
  • Loading branch information
dadevel committed Nov 8, 2023
1 parent a7db020 commit b517c36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions impacket/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pkgname=impacket
pkgname=impacket-unstable
pkgver=latest
pkgrel=1
# this fork merges PRs much faster than https://github.com/fortra/impacket
url="https://github.com/theporgs/${pkgname}.git"
url=https://github.com/theporgs/impacket.git
arch=(any)
license=(Apache)
depends=(python)
Expand All @@ -19,13 +19,13 @@ package() {
binname="$(basename "${binary%%.py}")"
binname="${binname,,}"
binname="${binname//_/-}"
cat << EOF > "${pkgdir}/opt/archpkgs/bin/${pkgname}-${binname}"
cat << EOF > "${pkgdir}/opt/archpkgs/bin/impacket-${binname}"
#!/bin/sh
set -eu
export VIRTUAL_ENV=/opt/archpkgs/${pkgname} PYTHONPATH=/opt/archpkgs/${pkgname} PATH="/opt/archpkgs/${pkgname}/bin:\$PATH"
exec python /opt/archpkgs/${pkgname}/bin/$(basename "${binary}") "\$@"
EOF
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}-${binname}"
chmod +x "${pkgdir}/opt/archpkgs/bin/impacket-${binname}"
done
}

Expand Down

0 comments on commit b517c36

Please sign in to comment.