Refactoring repository...
Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run

This commit is contained in:
CELESTIFYX
2025-01-14 19:02:06 +02:00
parent 876fa0988e
commit 08abac9e7d
33171 changed files with 4677 additions and 761 deletions

View File

@@ -0,0 +1,40 @@
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
pkgname=snigdhaos-blackbox
org=Snigdha-OS
pkgver=r251.f2df36f4
_pkgver=1.0.9
pkgrel=1
pkgdesc="A powerful framework for managing security tools on Snigdha OS"
arch=('any')
url="https://snigdhaos.org/"
license=('MIT')
depends=('yad' 'wget' 'qt5-base')
optdepends=('pamac: For graphical package management')
makedepends=('git' 'cmake')
groups=()
source=("https://github.com/${org}/${pkgname}/archive/refs/tags/v${_pkgver}.tar.gz")
sha256sums=('SKIP')
pkgver() {
# Extract the version dynamically using git
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# Configure and build the project
cmake -B build -S "$pkgname-$_pkgver" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
make -C build
}
package() {
# Install built files to the package directory
make -C build DESTDIR="$pkgdir" install
# Ensure proper directory structure
install -d "$pkgdir/usr"
cp -rf "$srcdir/$pkgname-$_pkgver/usr" "$pkgdir"
}