Files
snigdhaos-pkgbuilds/archive/snigdhaos-blackbox/PKGBUILD
CELESTIFYX 08abac9e7d
Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run
Refactoring repository...
2025-01-14 19:02:06 +02:00

40 lines
1.1 KiB
Bash

# 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"
}