blob: c6eed6b9cb5488d6fe15065fe33272266ff431ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
pkgname=hyprdots-ctl-git
pkgver=v0.4.0.35.gedf1737
pkgrel=1
pkgdesc="CLI for Hyprdots Configurations ++ Hidden Gems"
arch=('x86_64')
url="https://github.com/kRHYME7/Hyprdots-ctl"
license=('GPL3')
depends=( 'fzf' 'tree' 'ttf-jetbrains-mono-nerd' )
makedepends=('git' 'make' 'curl' 'base-devel')
source=("git+https://github.com/kRHYME7/Hyprdots-ctl.git")
md5sums=('SKIP')
conflicts=("hyprdots-ctl")
# pkgver() {
# cd "$srcdir/Hyprdots-ctl" || return
# git fetch --tags
# git describe --long --tags --always | sed 's/-/./g' # Replace hyphens with dots to conform to versioning standards
# }
pkgver() {
cd "$srcdir/Hyprdots-ctl" || return
git fetch --tags
# Use git describe with a fallback to the commit hash if no tags are found
local version=$(git describe --tags --always --dirty 2>/dev/null || git rev-parse --short HEAD)
# Replace hyphens with dots to conform to versioning standards
echo "$version" | sed 's/-/./g'
}
package() {
cd "${srcdir}/Hyprdots-ctl" || return
make DESTDIR="$pkgdir" clean all
}
|