summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49c751b2836c0c4c482bb1bacd80dc967ec1b624 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=(
  'colloid-icon-theme-git'
  'colloid-catppuccin-theme-git'
  'colloid-dracula-theme-git'
  'colloid-everforest-theme-git'
  'colloid-gruvbox-theme-git'
  'colloid-nord-icon-theme-git'
  'colloid-cursors-git'
)
pkgbase=colloid-icon-theme-git
pkgver=2024.08.27.r0.g39a2607e
pkgrel=1
pkgdesc="Icon theme for Linux desktops"
arch=('any')
url="https://github.com/vinceliuice/Colloid-icon-theme"
license=('GPL-3.0-or-later')
depends=('gtk-update-icon-cache' 'hicolor-icon-theme')
makedepends=('git')
options=('!strip')
source=('git+https://github.com/vinceliuice/Colloid-icon-theme.git')
sha256sums=('SKIP')

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

prepare() {
  cd Colloid-icon-theme

  # Disable running gtk-update-icon-cache
  sed -i '/gtk-update-icon-cache/d' install.sh
}

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

  cd Colloid-icon-theme
  install -d "$pkgdir/usr/share/icons"
  ./install.sh -s default -t all -d "$pkgdir/usr/share/icons"
}

package_colloid-catppuccin-theme-git() {
  pkgdesc="Catppuccin icon theme for Linux desktops"
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-icon-theme
  install -d "$pkgdir/usr/share/icons"
  ./install.sh -s catppuccin -t all -d "$pkgdir/usr/share/icons"
}

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

  cd Colloid-icon-theme
  install -d "$pkgdir/usr/share/icons"
  ./install.sh -s dracula -t all -d "$pkgdir/usr/share/icons"
}

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

  cd Colloid-icon-theme
  install -d "$pkgdir/usr/share/icons"
  ./install.sh -s everforest -t all -d "$pkgdir/usr/share/icons"
}

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

  cd Colloid-icon-theme
  install -d "$pkgdir/usr/share/icons"
  ./install.sh -s gruvbox -t all -d "$pkgdir/usr/share/icons"
}

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

  cd Colloid-icon-theme
  install -d "$pkgdir/usr/share/icons"
  ./install.sh -s nord -t all -d "$pkgdir/usr/share/icons"
}

package_colloid-cursors-git() {
  pkgdesc="An x-cursor theme inspired by Colloid theme and based on capitaine-cursors"
  depends=()
  provides=("${pkgname%-git}")
  conflicts=("${pkgname%-git}")

  cd Colloid-icon-theme/cursors
  install -d "$pkgdir"/usr/share/icons/Colloid{-cursors,-dark-cursors}
  cp -r dist/* "$pkgdir/usr/share/icons/Colloid-cursors/"
  cp -r dist-dark/* "$pkgdir/usr/share/icons/Colloid-dark-cursors/"
}