# Maintainer: Eshan Roy # Contributor: d3v1l0n pkgname=snigdhaos-assistant pkgver=2.0 _pkgver=$(curl -fsSL https://api.github.com/repos/Snigdha-OS/snigdhaos-assistant/releases/latest | jq -r .tag_name) pkgrel=1 pkgdesc="A setup utility for Snigdha OS which helps setting up & installing applications" arch=('any') url="https://gitlab.com/snigdhaos/snigdhaos-assistant/" license=('MIT') depends=('yad' 'wget' 'qt5-base' 'curl' 'jq' 'snigdhaos-libs') optdepends=('pamac: For managing packages') makedepends=('git' 'cmake') groups=() source=("https://github.com/Snigdha-OS/${pkgname}/archive/refs/tags/${_pkgver}.tar.gz") sha256sums=('SKIP') install=${pkgname}.install pkgver() { # Extract the version from the tag name, removing the 'v' prefix if present. printf "%s" "${_pkgver#v}" } build() { # Ensure the build directory exists 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" }