blob: 154168f568f9a88f764581a9cd24819a2a331cc4 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Frogprog frogprog09@gmail.com
pkgname=frogprog-hyprland-dark-git
pkgbase=frogprog-hyprland-dark-git
pkgver=1.0.5.4.61743e3
pkgrel=1
epoch=
pkgdesc="productive dark hyprland setup for laptop (14 inch)"
arch=('x86_64')
url="https://github.com/FrogProg09/my-linux"
_branch='gruvbox-dark'
license=('BSD')
#groups=()
depends=(
'hyprland'
'hyprlang'
'hyprlock'
'hyprpaper'
'hypridle'
'waybar'
'rofi-wayland'
'kitty'
'mako'
)
makedepends=('git')
#checkdepends=()
optdepends=(
'nautilus'
'hyprpolkitagent'
'starship'
)
#provides=()
# conflicts=()
# replaces=()
# backup=()
# options=()
# install=
# changelog=
source=("git+${url}#branch=${_branch}") # specifying branch from repo
# noextract=()
sha256sums=('SKIP')
# validpgpkeys=()
pkgver() {
cd "$srcdir/my-linux" || return 1
# Get the last tagged version, number of commits since that tag, and abbreviated commit hash
local version
version="$(git describe --tags --abbrev=0 2>/dev/null || echo "v1.1.2")" # Fallback to "0.0.0" if no tags
local commits
commits="$(git rev-list --count HEAD ^"$version")" # Count commits since last tag
local hash
hash="$(git rev-parse --short HEAD)" # Get short commit hash
# Remove the 'v' prefix from tags (if present)
version="${version#v}"
# Only keep characters allowed in pkgver
echo "${version}.${commits}.${hash}"
}
# build() {}
package() {
cd "$srcdir/my-linux" # Change to the source directory
# Make sure the install.sh script is executable
chmod +x install.sh
# Execute the install script with the target directory
# Here you direct it to the package directory
./install.sh --prefix="$pkgdir"
}
|