Files
snigdhaos-pkgbuilds/archive/snigdhaos-assistant/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

42 lines
1.2 KiB
Bash

# Maintainer: Eshan Roy <eshan@snigdhaos.org>
# Contributor: d3v1l0n <d3v1l0n@outlook.in>
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"
}