From bdb6882bf2ba6eb767dc66e3acd75512d0aa6ba3 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Tue, 28 Apr 2026 22:29:59 +0500 Subject: [PATCH 01/12] Update Calamares to version 3.4.2.26.0427 --- packages/calamares/PKGBUILD | 76 +++++++++++++++++++++---------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/packages/calamares/PKGBUILD b/packages/calamares/PKGBUILD index b94a6cc8a59..9fb9f4f7712 100644 --- a/packages/calamares/PKGBUILD +++ b/packages/calamares/PKGBUILD @@ -4,64 +4,74 @@ # and later reworked to match https://github.com/arch-linux-calamares-installer/alci-pkgbuild/blob/master/calamares/alci-calamares/calamares-3.3.0.230321-04/PKGBUILD # # Old Maintainer: Philip Müller +# Maintainer: Baxshilloyev Behruz pkgname=calamares -pkgver=3.3.0.23.0321 -pkgrel=1 +pkgver=3.4.2.26.0427 +pkgrel=3 epoch=3 pkgdesc='Distribution-independent installer framework.' url='https://github.com/calamares/calamares' arch=('x86_64' 'aarch64') license=('LGPL') -depends=('kconfig' 'kcoreaddons' 'kiconthemes' 'ki18n' 'kio' 'solid' 'yaml-cpp' - 'kpmcore' 'mkinitcpio-openswap' 'boost-libs' 'ckbcomp' 'hwinfo' - 'qt5-svg' 'polkit-qt5' 'gtk-update-icon-cache' 'plasma-framework' - 'qt5-xmlpatterns' 'squashfs-tools' 'libpwquality' 'appstream-qt' 'icu' - 'efibootmgr' 'kdbusaddons' 'python') -makedepends=('extra-cmake-modules' 'qt5-tools' 'qt5-translations' 'git' 'boost' - 'kparts' 'kdbusaddons' 'python') -backup=('usr/share/calamares/modules/bootloader.conf' - 'usr/share/calamares/modules/displaymanager.conf' - 'usr/share/calamares/modules/initcpio.conf' - 'usr/share/calamares/modules/unpackfs.conf') -source=($pkgname::git+https://github.com/calamares/calamares#commit=4f2ab85) + +depends=( + 'kconfig' 'kcoreaddons' 'kiconthemes' 'ki18n' 'kio' 'solid' + 'yaml-cpp' 'kpmcore' 'mkinitcpio-openswap' + 'boost-libs' 'ckbcomp' 'hwinfo' + 'qt6-base' 'qt6-declarative' 'qt6-svg' + 'polkit-qt6' 'gtk-update-icon-cache' + 'squashfs-tools' 'libpwquality' + 'icu' 'efibootmgr' 'kdbusaddons' + 'python' 'python-yaml' 'kcrash' +) + +makedepends=( + 'extra-cmake-modules' 'qt6-tools' 'qt6-translations' + 'git' 'boost' 'kdbusaddons' + 'python' 'ninja' 'cmake' +) + +source=("$pkgname::git+https://github.com/calamares/calamares.git") sha512sums=('SKIP') prepare() { cd "$pkgname" - _ver="$(cat CMakeLists.txt | grep -m3 -e " VERSION" | grep -o "[[:digit:]]*" | xargs | sed s'/ /./g')" + _ver="$(grep -m3 VERSION CMakeLists.txt | grep -o '[0-9]*' | xargs | sed 's/ /./g')" + sed -i -e \ "s|\${CALAMARES_VERSION_MAJOR}.\${CALAMARES_VERSION_MINOR}.\${CALAMARES_VERSION_PATCH}|${_ver}-${pkgrel}|g" \ CMakeLists.txt + sed -i -e "s|CALAMARES_VERSION_RC 1|CALAMARES_VERSION_RC 0|g" CMakeLists.txt } build() { cd "$pkgname" - mkdir -p build && cd build - - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DWITH_PYTHONQT=OFF \ - -DWITH_KF5DBus=OFF \ - -DBoost_NO_BOOST_CMAKE=ON \ - -DWEBVIEW_FORCE_WEBKIT=OFF \ - -DSKIP_MODULES="webview tracking interactiveterminal initramfs \ - initramfscfg dracut dracutlukscfg \ - dummyprocess dummypython dummycpp \ - dummypythonqt services-openrc \ - keyboardq localeq welcomeq" + cmake -S . -B build \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DWITH_QT6=ON \ + -DWITH_PYTHONQT=OFF \ + -DWITH_KF5DBus=OFF \ + -DBoost_NO_BOOST_CMAKE=ON \ + -DCMAKE_DISABLE_FIND_PACKAGE_PartitionManager=ON \ + -DSKIP_MODULES="webview tracking interactiveterminal initramfs \ + initramfscfg dracut dracutlukscfg \ + dummyprocess dummypython dummycpp \ + dummypythonqt services-openrc \ + keyboardq localeq welcomeq" - make + cmake --build build } package() { cd "$pkgname/build" - - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install . } From 3de02b665d7044aaa18a22dd70f454d5d770ce95 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:12:52 +0500 Subject: [PATCH 02/12] Create PKGBUILD for giskard package Add PKGBUILD for giskard package with installation scripts and dependencies. --- packages/giskard/PKGBUILD | 156 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 packages/giskard/PKGBUILD diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD new file mode 100644 index 00000000000..e57925cdb45 --- /dev/null +++ b/packages/giskard/PKGBUILD @@ -0,0 +1,156 @@ +# This file is part of BlackArch Linux (https://www.blackarch.org/). +# See COPYING for license details. +# +# Original Maintainer: Behruz + +pkgname=giskard +_pkgname=giskard-oss +pkgver=3.0.0b1.r10622.g8aafe5892 +pkgrel=1 +pkgdesc='Evaluation, testing and vulnerability scanning framework for AI agents.' +arch=('x86_64') +groups=('blackarch' 'blackarch-ai') +url='https://github.com/Giskard-AI/giskard-oss' +license=('Apache-2.0') +depends=('python>=3.12') +makedepends=('git' 'python-pip' 'python-virtualenv') +provides=('giskard') +conflicts=('giskard-oss-git' 'python-giskard') +options=('!strip' '!debug') +source=("git+$url.git") +sha512sums=('SKIP') + +pkgver() { + cd "$_pkgname" + + local _version + + _version=$(sed -n \ + 's/^[[:space:]]*version[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' \ + pyproject.toml | head -n 1) + + printf '%s.r%s.g%s' \ + "${_version:-3.0.0b1}" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + +package() { + cd "$_pkgname" + + local _venv="$pkgdir/opt/$pkgname" + local _python="$_venv/bin/python" + local _file + local _cmd + + python -m venv "$_venv" + + PIP_DISABLE_PIP_VERSION_CHECK=1 \ + "$_python" -m pip install \ + --no-cache-dir \ + --no-warn-script-location \ + --upgrade \ + pip \ + setuptools \ + wheel + + PIP_DISABLE_PIP_VERSION_CHECK=1 \ + "$_python" -m pip install \ + --no-cache-dir \ + --no-warn-script-location \ + --compile \ + "$srcdir/$_pkgname/libs/giskard-core" \ + "$srcdir/$_pkgname/libs/giskard-llm" \ + "$srcdir/$_pkgname/libs/giskard-agents" \ + "$srcdir/$_pkgname/libs/giskard-checks" \ + "$srcdir/$_pkgname/libs/giskard-scan" \ + "$srcdir/$_pkgname" + + while IFS= read -r -d '' _file; do + if head -n 1 "$_file" 2>/dev/null | + grep -Fq "#!$pkgdir/opt/$pkgname/bin/python"; then + sed -i \ + "1s|^#!$pkgdir/opt/$pkgname/bin/python[^[:space:]]*|#!/opt/$pkgname/bin/python|" \ + "$_file" + fi + done < <( + find "$_venv/bin" \ + -maxdepth 1 \ + -type f \ + -print0 + ) + + find "$_venv" \ + -type d \ + \( \ + -name '.pytest_cache' \ + -o -name '.mypy_cache' \ + -o -name '.ruff_cache' \ + \) \ + -prune \ + -exec rm -rf '{}' + + + install -dm 755 "$pkgdir/usr/bin" + + cat > "$pkgdir/usr/bin/giskard-python" << 'EOF' +#!/bin/sh +exec /opt/giskard/bin/python "$@" +EOF + + cat > "$pkgdir/usr/bin/giskard-info" << 'EOF' +#!/opt/giskard/bin/python + +from importlib.metadata import PackageNotFoundError, version + +packages = ( + "giskard", + "giskard-core", + "giskard-llm", + "giskard-agents", + "giskard-checks", + "giskard-scan", +) + +for package in packages: + try: + installed_version = version(package) + except PackageNotFoundError: + installed_version = "not installed" + + print(f"{package}: {installed_version}") +EOF + + chmod 755 \ + "$pkgdir/usr/bin/giskard-python" \ + "$pkgdir/usr/bin/giskard-info" + + for _file in "$_venv"/bin/giskard*; do + [[ -f "$_file" && -x "$_file" ]] || continue + + _cmd="${_file##*/}" + + [[ "$_cmd" == 'giskard-info' ]] && continue + [[ "$_cmd" == 'giskard-python' ]] && continue + + cat > "$pkgdir/usr/bin/$_cmd" << EOF +#!/bin/sh +exec /opt/$pkgname/bin/$_cmd "\$@" +EOF + + chmod 755 "$pkgdir/usr/bin/$_cmd" + done + + install -Dm 644 LICENSE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm 644 README.md \ + "$pkgdir/usr/share/doc/$pkgname/README.md" + + [[ -f SECURITY.md ]] && + install -Dm 644 SECURITY.md \ + "$pkgdir/usr/share/doc/$pkgname/SECURITY.md" + + [[ -f THIRD_PARTY_NOTICES.md ]] && + install -Dm 644 THIRD_PARTY_NOTICES.md \ + "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" +} From 2887011ff73c0d240d3dc603569b2015c83c4ed2 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:15:58 +0500 Subject: [PATCH 03/12] Fix install command for THIRD_PARTY_NOTICES.md --- packages/giskard/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD index e57925cdb45..bc6a98150b1 100644 --- a/packages/giskard/PKGBUILD +++ b/packages/giskard/PKGBUILD @@ -154,3 +154,4 @@ EOF install -Dm 644 THIRD_PARTY_NOTICES.md \ "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" } + From 9393d1ea664f1dce38713b2b6e8ebcb443b41229 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:19:36 +0500 Subject: [PATCH 04/12] Fix formatting in PKGBUILD --- packages/giskard/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD index bc6a98150b1..88462d0f30f 100644 --- a/packages/giskard/PKGBUILD +++ b/packages/giskard/PKGBUILD @@ -154,4 +154,4 @@ EOF install -Dm 644 THIRD_PARTY_NOTICES.md \ "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" } - +/n From 5a002f802107969a52595a2249d9ec3e5dac5d93 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:23:07 +0500 Subject: [PATCH 05/12] Fix formatting in PKGBUILD file --- packages/giskard/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD index 88462d0f30f..bc6a98150b1 100644 --- a/packages/giskard/PKGBUILD +++ b/packages/giskard/PKGBUILD @@ -154,4 +154,4 @@ EOF install -Dm 644 THIRD_PARTY_NOTICES.md \ "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" } -/n + From 7f1c824256d7faddd1c8e0f6ba7b5f621aefd8d4 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:33:27 +0500 Subject: [PATCH 06/12] Delete packages/giskard directory --- packages/giskard/PKGBUILD | 157 -------------------------------------- 1 file changed, 157 deletions(-) delete mode 100644 packages/giskard/PKGBUILD diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD deleted file mode 100644 index bc6a98150b1..00000000000 --- a/packages/giskard/PKGBUILD +++ /dev/null @@ -1,157 +0,0 @@ -# This file is part of BlackArch Linux (https://www.blackarch.org/). -# See COPYING for license details. -# -# Original Maintainer: Behruz - -pkgname=giskard -_pkgname=giskard-oss -pkgver=3.0.0b1.r10622.g8aafe5892 -pkgrel=1 -pkgdesc='Evaluation, testing and vulnerability scanning framework for AI agents.' -arch=('x86_64') -groups=('blackarch' 'blackarch-ai') -url='https://github.com/Giskard-AI/giskard-oss' -license=('Apache-2.0') -depends=('python>=3.12') -makedepends=('git' 'python-pip' 'python-virtualenv') -provides=('giskard') -conflicts=('giskard-oss-git' 'python-giskard') -options=('!strip' '!debug') -source=("git+$url.git") -sha512sums=('SKIP') - -pkgver() { - cd "$_pkgname" - - local _version - - _version=$(sed -n \ - 's/^[[:space:]]*version[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' \ - pyproject.toml | head -n 1) - - printf '%s.r%s.g%s' \ - "${_version:-3.0.0b1}" \ - "$(git rev-list --count HEAD)" \ - "$(git rev-parse --short HEAD)" -} - -package() { - cd "$_pkgname" - - local _venv="$pkgdir/opt/$pkgname" - local _python="$_venv/bin/python" - local _file - local _cmd - - python -m venv "$_venv" - - PIP_DISABLE_PIP_VERSION_CHECK=1 \ - "$_python" -m pip install \ - --no-cache-dir \ - --no-warn-script-location \ - --upgrade \ - pip \ - setuptools \ - wheel - - PIP_DISABLE_PIP_VERSION_CHECK=1 \ - "$_python" -m pip install \ - --no-cache-dir \ - --no-warn-script-location \ - --compile \ - "$srcdir/$_pkgname/libs/giskard-core" \ - "$srcdir/$_pkgname/libs/giskard-llm" \ - "$srcdir/$_pkgname/libs/giskard-agents" \ - "$srcdir/$_pkgname/libs/giskard-checks" \ - "$srcdir/$_pkgname/libs/giskard-scan" \ - "$srcdir/$_pkgname" - - while IFS= read -r -d '' _file; do - if head -n 1 "$_file" 2>/dev/null | - grep -Fq "#!$pkgdir/opt/$pkgname/bin/python"; then - sed -i \ - "1s|^#!$pkgdir/opt/$pkgname/bin/python[^[:space:]]*|#!/opt/$pkgname/bin/python|" \ - "$_file" - fi - done < <( - find "$_venv/bin" \ - -maxdepth 1 \ - -type f \ - -print0 - ) - - find "$_venv" \ - -type d \ - \( \ - -name '.pytest_cache' \ - -o -name '.mypy_cache' \ - -o -name '.ruff_cache' \ - \) \ - -prune \ - -exec rm -rf '{}' + - - install -dm 755 "$pkgdir/usr/bin" - - cat > "$pkgdir/usr/bin/giskard-python" << 'EOF' -#!/bin/sh -exec /opt/giskard/bin/python "$@" -EOF - - cat > "$pkgdir/usr/bin/giskard-info" << 'EOF' -#!/opt/giskard/bin/python - -from importlib.metadata import PackageNotFoundError, version - -packages = ( - "giskard", - "giskard-core", - "giskard-llm", - "giskard-agents", - "giskard-checks", - "giskard-scan", -) - -for package in packages: - try: - installed_version = version(package) - except PackageNotFoundError: - installed_version = "not installed" - - print(f"{package}: {installed_version}") -EOF - - chmod 755 \ - "$pkgdir/usr/bin/giskard-python" \ - "$pkgdir/usr/bin/giskard-info" - - for _file in "$_venv"/bin/giskard*; do - [[ -f "$_file" && -x "$_file" ]] || continue - - _cmd="${_file##*/}" - - [[ "$_cmd" == 'giskard-info' ]] && continue - [[ "$_cmd" == 'giskard-python' ]] && continue - - cat > "$pkgdir/usr/bin/$_cmd" << EOF -#!/bin/sh -exec /opt/$pkgname/bin/$_cmd "\$@" -EOF - - chmod 755 "$pkgdir/usr/bin/$_cmd" - done - - install -Dm 644 LICENSE \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - install -Dm 644 README.md \ - "$pkgdir/usr/share/doc/$pkgname/README.md" - - [[ -f SECURITY.md ]] && - install -Dm 644 SECURITY.md \ - "$pkgdir/usr/share/doc/$pkgname/SECURITY.md" - - [[ -f THIRD_PARTY_NOTICES.md ]] && - install -Dm 644 THIRD_PARTY_NOTICES.md \ - "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" -} - From 35b4187087378c0bb97962a72b70fdc53cb168b6 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:34:43 +0500 Subject: [PATCH 07/12] Create p --- packages/giskard/p | 1 + 1 file changed, 1 insertion(+) create mode 100644 packages/giskard/p diff --git a/packages/giskard/p b/packages/giskard/p new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/packages/giskard/p @@ -0,0 +1 @@ + From e6abd82b157bc62de96e990a3132a4e77a3f746c Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:35:03 +0500 Subject: [PATCH 08/12] Add files via upload --- packages/giskard/PKGBUILD | 157 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 packages/giskard/PKGBUILD diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD new file mode 100644 index 00000000000..bc6a98150b1 --- /dev/null +++ b/packages/giskard/PKGBUILD @@ -0,0 +1,157 @@ +# This file is part of BlackArch Linux (https://www.blackarch.org/). +# See COPYING for license details. +# +# Original Maintainer: Behruz + +pkgname=giskard +_pkgname=giskard-oss +pkgver=3.0.0b1.r10622.g8aafe5892 +pkgrel=1 +pkgdesc='Evaluation, testing and vulnerability scanning framework for AI agents.' +arch=('x86_64') +groups=('blackarch' 'blackarch-ai') +url='https://github.com/Giskard-AI/giskard-oss' +license=('Apache-2.0') +depends=('python>=3.12') +makedepends=('git' 'python-pip' 'python-virtualenv') +provides=('giskard') +conflicts=('giskard-oss-git' 'python-giskard') +options=('!strip' '!debug') +source=("git+$url.git") +sha512sums=('SKIP') + +pkgver() { + cd "$_pkgname" + + local _version + + _version=$(sed -n \ + 's/^[[:space:]]*version[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' \ + pyproject.toml | head -n 1) + + printf '%s.r%s.g%s' \ + "${_version:-3.0.0b1}" \ + "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short HEAD)" +} + +package() { + cd "$_pkgname" + + local _venv="$pkgdir/opt/$pkgname" + local _python="$_venv/bin/python" + local _file + local _cmd + + python -m venv "$_venv" + + PIP_DISABLE_PIP_VERSION_CHECK=1 \ + "$_python" -m pip install \ + --no-cache-dir \ + --no-warn-script-location \ + --upgrade \ + pip \ + setuptools \ + wheel + + PIP_DISABLE_PIP_VERSION_CHECK=1 \ + "$_python" -m pip install \ + --no-cache-dir \ + --no-warn-script-location \ + --compile \ + "$srcdir/$_pkgname/libs/giskard-core" \ + "$srcdir/$_pkgname/libs/giskard-llm" \ + "$srcdir/$_pkgname/libs/giskard-agents" \ + "$srcdir/$_pkgname/libs/giskard-checks" \ + "$srcdir/$_pkgname/libs/giskard-scan" \ + "$srcdir/$_pkgname" + + while IFS= read -r -d '' _file; do + if head -n 1 "$_file" 2>/dev/null | + grep -Fq "#!$pkgdir/opt/$pkgname/bin/python"; then + sed -i \ + "1s|^#!$pkgdir/opt/$pkgname/bin/python[^[:space:]]*|#!/opt/$pkgname/bin/python|" \ + "$_file" + fi + done < <( + find "$_venv/bin" \ + -maxdepth 1 \ + -type f \ + -print0 + ) + + find "$_venv" \ + -type d \ + \( \ + -name '.pytest_cache' \ + -o -name '.mypy_cache' \ + -o -name '.ruff_cache' \ + \) \ + -prune \ + -exec rm -rf '{}' + + + install -dm 755 "$pkgdir/usr/bin" + + cat > "$pkgdir/usr/bin/giskard-python" << 'EOF' +#!/bin/sh +exec /opt/giskard/bin/python "$@" +EOF + + cat > "$pkgdir/usr/bin/giskard-info" << 'EOF' +#!/opt/giskard/bin/python + +from importlib.metadata import PackageNotFoundError, version + +packages = ( + "giskard", + "giskard-core", + "giskard-llm", + "giskard-agents", + "giskard-checks", + "giskard-scan", +) + +for package in packages: + try: + installed_version = version(package) + except PackageNotFoundError: + installed_version = "not installed" + + print(f"{package}: {installed_version}") +EOF + + chmod 755 \ + "$pkgdir/usr/bin/giskard-python" \ + "$pkgdir/usr/bin/giskard-info" + + for _file in "$_venv"/bin/giskard*; do + [[ -f "$_file" && -x "$_file" ]] || continue + + _cmd="${_file##*/}" + + [[ "$_cmd" == 'giskard-info' ]] && continue + [[ "$_cmd" == 'giskard-python' ]] && continue + + cat > "$pkgdir/usr/bin/$_cmd" << EOF +#!/bin/sh +exec /opt/$pkgname/bin/$_cmd "\$@" +EOF + + chmod 755 "$pkgdir/usr/bin/$_cmd" + done + + install -Dm 644 LICENSE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm 644 README.md \ + "$pkgdir/usr/share/doc/$pkgname/README.md" + + [[ -f SECURITY.md ]] && + install -Dm 644 SECURITY.md \ + "$pkgdir/usr/share/doc/$pkgname/SECURITY.md" + + [[ -f THIRD_PARTY_NOTICES.md ]] && + install -Dm 644 THIRD_PARTY_NOTICES.md \ + "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" +} + From 1a22475e4828fffb9db53510930c9041e531a6a8 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Sun, 26 Jul 2026 11:36:26 +0500 Subject: [PATCH 09/12] Delete packages/giskard/p --- packages/giskard/p | 1 - 1 file changed, 1 deletion(-) delete mode 100644 packages/giskard/p diff --git a/packages/giskard/p b/packages/giskard/p deleted file mode 100644 index 8b137891791..00000000000 --- a/packages/giskard/p +++ /dev/null @@ -1 +0,0 @@ - From f80990b2561ca31bc161e7e70f7bd83538cd41ac Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Mon, 3 Aug 2026 16:12:35 +0500 Subject: [PATCH 10/12] Add files via upload --- packages/giskard/PKGBUILD | 140 ++++--------------------------- packages/giskard/giskard.install | 35 ++++++++ 2 files changed, 53 insertions(+), 122 deletions(-) create mode 100644 packages/giskard/giskard.install diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD index bc6a98150b1..ee190a18d08 100644 --- a/packages/giskard/PKGBUILD +++ b/packages/giskard/PKGBUILD @@ -1,24 +1,21 @@ -# This file is part of BlackArch Linux (https://www.blackarch.org/). +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. -# # Original Maintainer: Behruz pkgname=giskard _pkgname=giskard-oss -pkgver=3.0.0b1.r10622.g8aafe5892 +pkgver=3.0.0b1.r10634.g3bd69b4 pkgrel=1 pkgdesc='Evaluation, testing and vulnerability scanning framework for AI agents.' -arch=('x86_64') +arch=('any') groups=('blackarch' 'blackarch-ai') url='https://github.com/Giskard-AI/giskard-oss' license=('Apache-2.0') -depends=('python>=3.12') -makedepends=('git' 'python-pip' 'python-virtualenv') -provides=('giskard') -conflicts=('giskard-oss-git' 'python-giskard') -options=('!strip' '!debug') +depends=('python') +makedepends=('git' 'python-setuptools' 'python-pip') source=("git+$url.git") sha512sums=('SKIP') +install="$pkgname.install" pkgver() { cd "$_pkgname" @@ -30,128 +27,27 @@ pkgver() { pyproject.toml | head -n 1) printf '%s.r%s.g%s' \ - "${_version:-3.0.0b1}" \ + "$_version" \ "$(git rev-list --count HEAD)" \ - "$(git rev-parse --short HEAD)" + "$(git rev-parse --short=7 HEAD)" } package() { cd "$_pkgname" - local _venv="$pkgdir/opt/$pkgname" - local _python="$_venv/bin/python" - local _file - local _cmd + install -dm 755 "$pkgdir/usr/bin" "$pkgdir/usr/share/$pkgname" + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - python -m venv "$_venv" + cp -r -- * "$pkgdir/usr/share/$pkgname/" + rm -f "$pkgdir/usr/share/$pkgname/LICENSE" \ + "$pkgdir/usr/share/$pkgname/README.md" - PIP_DISABLE_PIP_VERSION_CHECK=1 \ - "$_python" -m pip install \ - --no-cache-dir \ - --no-warn-script-location \ - --upgrade \ - pip \ - setuptools \ - wheel - - PIP_DISABLE_PIP_VERSION_CHECK=1 \ - "$_python" -m pip install \ - --no-cache-dir \ - --no-warn-script-location \ - --compile \ - "$srcdir/$_pkgname/libs/giskard-core" \ - "$srcdir/$_pkgname/libs/giskard-llm" \ - "$srcdir/$_pkgname/libs/giskard-agents" \ - "$srcdir/$_pkgname/libs/giskard-checks" \ - "$srcdir/$_pkgname/libs/giskard-scan" \ - "$srcdir/$_pkgname" - - while IFS= read -r -d '' _file; do - if head -n 1 "$_file" 2>/dev/null | - grep -Fq "#!$pkgdir/opt/$pkgname/bin/python"; then - sed -i \ - "1s|^#!$pkgdir/opt/$pkgname/bin/python[^[:space:]]*|#!/opt/$pkgname/bin/python|" \ - "$_file" - fi - done < <( - find "$_venv/bin" \ - -maxdepth 1 \ - -type f \ - -print0 - ) - - find "$_venv" \ - -type d \ - \( \ - -name '.pytest_cache' \ - -o -name '.mypy_cache' \ - -o -name '.ruff_cache' \ - \) \ - -prune \ - -exec rm -rf '{}' + - - install -dm 755 "$pkgdir/usr/bin" - - cat > "$pkgdir/usr/bin/giskard-python" << 'EOF' + cat > "$pkgdir/usr/bin/$pkgname" << EOF #!/bin/sh -exec /opt/giskard/bin/python "$@" -EOF - - cat > "$pkgdir/usr/bin/giskard-info" << 'EOF' -#!/opt/giskard/bin/python - -from importlib.metadata import PackageNotFoundError, version - -packages = ( - "giskard", - "giskard-core", - "giskard-llm", - "giskard-agents", - "giskard-checks", - "giskard-scan", -) - -for package in packages: - try: - installed_version = version(package) - except PackageNotFoundError: - installed_version = "not installed" - - print(f"{package}: {installed_version}") +source /usr/share/$pkgname/venv/bin/activate +exec /usr/share/$pkgname/venv/bin/python "\$@" EOF - chmod 755 \ - "$pkgdir/usr/bin/giskard-python" \ - "$pkgdir/usr/bin/giskard-info" - - for _file in "$_venv"/bin/giskard*; do - [[ -f "$_file" && -x "$_file" ]] || continue - - _cmd="${_file##*/}" - - [[ "$_cmd" == 'giskard-info' ]] && continue - [[ "$_cmd" == 'giskard-python' ]] && continue - - cat > "$pkgdir/usr/bin/$_cmd" << EOF -#!/bin/sh -exec /opt/$pkgname/bin/$_cmd "\$@" -EOF - - chmod 755 "$pkgdir/usr/bin/$_cmd" - done - - install -Dm 644 LICENSE \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - install -Dm 644 README.md \ - "$pkgdir/usr/share/doc/$pkgname/README.md" - - [[ -f SECURITY.md ]] && - install -Dm 644 SECURITY.md \ - "$pkgdir/usr/share/doc/$pkgname/SECURITY.md" - - [[ -f THIRD_PARTY_NOTICES.md ]] && - install -Dm 644 THIRD_PARTY_NOTICES.md \ - "$pkgdir/usr/share/doc/$pkgname/THIRD_PARTY_NOTICES.md" + chmod +x "$pkgdir/usr/bin/$pkgname" } - diff --git a/packages/giskard/giskard.install b/packages/giskard/giskard.install new file mode 100644 index 00000000000..aad912cadd0 --- /dev/null +++ b/packages/giskard/giskard.install @@ -0,0 +1,35 @@ +post_install() { + set -e + + cd /usr/share/giskard + + python -m venv venv + + source venv/bin/activate && + pip install --isolated --root=/usr/share/giskard --prefix=venv \ + ./libs/giskard-core \ + ./libs/giskard-llm \ + ./libs/giskard-agents \ + ./libs/giskard-checks \ + ./libs/giskard-scan \ + . +} + +post_upgrade() { + set -e + + cd /usr/share/giskard + + source venv/bin/activate && + pip install --isolated --root=/usr/share/giskard --prefix=venv --upgrade \ + ./libs/giskard-core \ + ./libs/giskard-llm \ + ./libs/giskard-agents \ + ./libs/giskard-checks \ + ./libs/giskard-scan \ + . +} + +post_remove() { + rm -rf /usr/share/giskard +} From 2785537073919be40183590283fc2fa2098fd3e5 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Mon, 3 Aug 2026 16:13:57 +0500 Subject: [PATCH 11/12] Fix formatting in PKGBUILD file --- packages/giskard/PKGBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/giskard/PKGBUILD b/packages/giskard/PKGBUILD index ee190a18d08..958cfe03a6b 100644 --- a/packages/giskard/PKGBUILD +++ b/packages/giskard/PKGBUILD @@ -51,3 +51,4 @@ EOF chmod +x "$pkgdir/usr/bin/$pkgname" } + From 81266b3bd31b913cb4e2334d1e16af5028443667 Mon Sep 17 00:00:00 2001 From: Zen1th53 Date: Mon, 3 Aug 2026 17:14:32 +0500 Subject: [PATCH 12/12] Create aidebug PKGBUILD for package management Add PKGBUILD for aidebug, an AI-assisted malware reverse-engineering debugger. --- packages/aidebug/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packages/aidebug/PKGBUILD diff --git a/packages/aidebug/PKGBUILD b/packages/aidebug/PKGBUILD new file mode 100644 index 00000000000..db4b60078f7 --- /dev/null +++ b/packages/aidebug/PKGBUILD @@ -0,0 +1,45 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details.. +# Original Maintainer: Behruz + +pkgname=aidebug +_pkgname=1200km_aidebug +_pypiname=1200km-aidebug +pkgver=1.1.0 +pkgrel=1 +pkgdesc='AI-assisted malware reverse-engineering debugger and triage CLI.' +arch=('any') +groups=('blackarch' 'blackarch-debugger' 'blackarch-malware' + 'blackarch-reversing') +url='https://github.com/anpa1200/AIDebug' +license=('MIT') +depends=('python' 'python-anthropic' 'python-capstone' 'python-pefile' + 'python-pyelftools' 'python-rich' 'python-textual') +optdepends=('python-frida: dynamic tracing support') +makedepends=('python-build' 'python-pip') +source=("https://files.pythonhosted.org/packages/source/${_pypiname::1}/$_pypiname/$_pkgname-$pkgver.tar.gz") +sha512sums=('c98380950739ce122ee3bcd42d9f4eefb46c3523ac72f6f905d5658a5af0e84235513d622f2b388d14fedf9c3d0eae1a80b2ffeecf5fced6f7c628b67bd02deb') + +build() { + cd "$_pkgname-$pkgver" + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd "$_pkgname-$pkgver" + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + $_pypiname +} +