summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 175fb89167855e84641a134a240de741903464e4 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=(
  'colloid-gtk-theme-git'
  'colloid-dracula-gtk-theme-git'
  'colloid-everforest-gtk-theme-git'
  'colloid-gruvbox-gtk-theme-git'
  'colloid-nord-gtk-theme-git'
)
pkgbase=colloid-gtk-theme-git
pkgver=2024.04.14.r0.g2949b6a7
pkgrel=1
pkgdesc="Gtk theme for Linux"
arch=('any')
url="https://github.com/vinceliuice/Colloid-gtk-theme"
license=('GPL-3.0-or-later')
makedepends=('git' 'sassc')
optdepends=('gtk-engine-murrine: GTK2 theme support'
            'colloid-icon-theme: Matching icon theme'
            'colloid-cursors: Matching cursor theme')
options=('!strip')
install="${pkgname%-git}.install"
source=('git+https://github.com/vinceliuice/Colloid-gtk-theme.git')
sha256sums=('SKIP')

pkgver() {
  cd Colloid-gtk-theme
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package_colloid-gtk-theme-git() {
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-gtk-theme
  install -d "$pkgdir/usr/share/themes"
  ./install.sh -t all -d "$pkgdir/usr/share/themes"
  ./install.sh -t all -s compact --tweaks normal -d "$pkgdir/usr/share/themes"

  # Firefox theme
  install -d "$pkgdir/usr/share/doc/${pkgname%-git}"
  cp -r src/other/firefox "$pkgdir/usr/share/doc/${pkgname%-git}/"
}

package_colloid-dracula-gtk-theme-git() {
  pkgdesc="Gtk Dracula theme for Linux"
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-gtk-theme
  install -d "$pkgdir/usr/share/themes"
  ./install.sh -t all --tweaks dracula -d "$pkgdir/usr/share/themes"
  ./install.sh -t all -s compact --tweaks dracula normal -d "$pkgdir/usr/share/themes"
}

package_colloid-everforest-gtk-theme-git() {
  pkgdesc="Gtk Everforest theme for Linux"
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-gtk-theme
  install -d "$pkgdir/usr/share/themes"
  ./install.sh -t all --tweaks everforest -d "$pkgdir/usr/share/themes"
  ./install.sh -t all -s compact --tweaks everforest normal -d "$pkgdir/usr/share/themes"
}

package_colloid-gruvbox-gtk-theme-git() {
  pkgdesc="Gtk Gruvbox theme for Linux"
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-gtk-theme
  install -d "$pkgdir/usr/share/themes"
  ./install.sh -t all --tweaks gruvbox -d "$pkgdir/usr/share/themes"
  ./install.sh -t all -s compact --tweaks gruvbox normal -d "$pkgdir/usr/share/themes"
}

package_colloid-nord-gtk-theme-git() {
  pkgdesc="Gtk Nord theme for Linux"
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-gtk-theme
  install -d "$pkgdir/usr/share/themes"
  ./install.sh -t all --tweaks nord -d "$pkgdir/usr/share/themes"
  ./install.sh -t all -s compact --tweaks nord normal -d "$pkgdir/usr/share/themes"
}