mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-05 20:26:42 +02:00

Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run
40 lines
1.1 KiB
Bash
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"
|
|
} |