summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53520ca6c5fd817d3efb581f1cf90e2028138302 (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
# Maintainer:
# Contributor: Francois Menning <f.menning@pm.me>

_gitname="qogir-theme"
_pkgname="qogir-gtk-theme"
pkgname="$_pkgname-git"
pkgver=2023.05.24.r6.ga25bc47
pkgrel=1
pkgdesc='Qogir is a flat Design theme for GTK'
arch=('any')
url='https://github.com/vinceliuice/Qogir-theme'
license=('GPL3')

depends=(
  'gtk-engine-murrine'
  'gtk-engines'
  'gtk3'
  'gtk4'
)
makedepends=(
  'git'
  'sassc'
)

optdepends=(
  'qogir-icon-theme: Matching icon theme'
)

provides=('qogir-gtk-theme')
conflicts=('qogir-gtk-theme')

source=(
  "$_gitname"::"git+$url"
)
sha256sums=(
  'SKIP'
)

_pkgsrc="$_gitname"
pkgver() {
  cd "$srcdir/$_pkgsrc"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$_pkgsrc"

  install -dm755 "$pkgdir/usr/share/themes"
  
  ./install.sh \
    --dest "$pkgdir/usr/share/themes" \
    --theme all \
    --icon arch \
    --libadwaita \
    --tweaks image
}