From 108f846eb694434be58b4161b37ef1e06713b518 Mon Sep 17 00:00:00 2001 From: dadevel Date: Tue, 7 Nov 2023 23:52:50 +0100 Subject: [PATCH] impacket: rename package to avoid collision --- impacket/PKGBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/impacket/PKGBUILD b/impacket/PKGBUILD index f2e16104..74f2ea4b 100644 --- a/impacket/PKGBUILD +++ b/impacket/PKGBUILD @@ -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) @@ -10,7 +10,7 @@ source=("git+${url}") sha256sums=(SKIP) package() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/impacket" mkdir -p "${pkgdir}"/opt/archpkgs/bin "${pkgdir}/opt/archpkgs/${pkgname}" python -m venv "${pkgdir}/opt/archpkgs/${pkgname}" declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH" @@ -19,17 +19,17 @@ 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 } pkgver() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/impacket" echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" }