From d3036e54bb12730d9cb84b893acc4e4d6f05a14f Mon Sep 17 00:00:00 2001 From: eshanized Date: Mon, 30 Dec 2024 02:28:51 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(source):=20the=20source=20fi?= =?UTF-8?q?les=20has=20been=20updated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cz.yml | 2 +- snigdhaos-cinnamon-config/PKGBUILD | 31 ++++++++++++++++-------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cz.yml b/.github/workflows/cz.yml index fee284c3..2d474a46 100644 --- a/.github/workflows/cz.yml +++ b/.github/workflows/cz.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Check Conventional Commit run: | diff --git a/snigdhaos-cinnamon-config/PKGBUILD b/snigdhaos-cinnamon-config/PKGBUILD index 4eb045da..83fd2745 100644 --- a/snigdhaos-cinnamon-config/PKGBUILD +++ b/snigdhaos-cinnamon-config/PKGBUILD @@ -1,26 +1,29 @@ # Maintainer: Eshan Roy pkgname=snigdhaos-cinnamon-config -pkgdesc= -pkgver="1" +pkgver=1 pkgrel=1 arch=('any') -url="" +pkgdesc="SnigdhaOS Cinnamon Desktop configuration files" +url="https://snigdha-os.github.io" license=('MIT') +depends=('kvantum-qt5' 'noto-fonts' 'snigdhaos-default-config') makedepends=('coreutils') -source=("") -sha256sums=('SKIP') +source=("https://github.com/snigdha-os/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('SKIP') install=$pkgname.install provides=('snigdhaos-desktop') conflicts=('snigdhaos-desktop') -package() { - depends=('kvantum-qt5' - 'noto-fonts' - 'snigdhaos-default-config') - - install -d "$pkgdir"/etc - cp -rf "$srcdir"/$pkgname-$_commit/etc "$pkgdir" - install -d "$pkgdir"/usr - cp -rf "$srcdir"/$pkgname-$_commit/usr "$pkgdir" +pkgver() { + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + # Create required directories + install -d "$pkgdir/etc" "$pkgdir/usr" + + # Copy configuration files from the extracted tarball + cp -rf "$srcdir/${pkgname}-${pkgver}/etc" "$pkgdir/etc" + cp -rf "$srcdir/${pkgname}-${pkgver}/usr" "$pkgdir/usr" }