summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d0a09c0d8970928ad4a45ca2e9444dc9d43bf4c (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
# Maintainer: Andrey Vihrov <andrey.vihrov at gmail.com>
# Contributor: megadriver <megadriver at gmx dot com>
# Based on clearlooks-phenix-gtk-theme-git, also in the AUR

pkgname=clearlooks-phenix-gtk-theme
pkgver=7.0.1
pkgrel=4
pkgdesc="GTK3 theme visually close to Clearlooks"
arch=('any')
url="https://github.com/jpfleury/clearlooks-phenix"
license=('GPL3')
depends=('gtk-engines')
optdepends=('mist-icon-theme: a visually compatible icon theme')
makedepends=('inkscape')
conflicts=('clearlooks-phenix-gtk-theme-git')
source=("https://github.com/jpfleury/clearlooks-phenix/archive/${pkgver}.tar.gz"
        "001-stray-brace.patch"
        "002-font-defs.patch"
        "003-menus.patch"
        "004-comboboxes.patch"
        "005-padding.patch"
        "006-explicit-units.patch")
sha256sums=('2a9b21400f9960422e31dc4dabb4f320a16b76776a9574f0986bb00e97d357f4'
            'cec5858505fff05fcc9d1187053f184c1a6c07015327d5a5545cfb741965f56c'
            'ee742dfe781b8dda8034a9c471fee4c296b3afc4e5663a2fd0b0499deddb901c'
            'c94d529b41471e6ad0c39beb55ae6b67ebc0d6d2a8d655bed12d5ea57c0363a3'
            '8b1180a62128ea936d561899fbfcc1bd843fba9ed1295676f3795f23c607d5de'
            'e1b971c68c00d34067184049d6ab5de63876083a6918ade1a5a69286f601d96a'
            '50ae4e1638bfa45f2ab17f04db713a660c5bbab5632e75b37766fac805b5df47')

prepare() {
  cd "clearlooks-phenix-${pkgver}"

  patch -p1 < "${srcdir}/001-stray-brace.patch"
  patch -p1 < "${srcdir}/002-font-defs.patch"
  patch -p1 < "${srcdir}/003-menus.patch"
  patch -p1 < "${srcdir}/004-comboboxes.patch"
  patch -p1 < "${srcdir}/005-padding.patch"
  patch -p1 < "${srcdir}/006-explicit-units.patch"
}

build() {
  cd "clearlooks-phenix-${pkgver}"

  # Prefer building icons from SVG source
  make -C _src clean
  make -C _src
}

package() {
  cd "clearlooks-phenix-${pkgver}"

  mkdir -p "${pkgdir}/usr/share/themes/Clearlooks-Phenix"
  cp -a gtk-2.0 gtk-3.0 index.theme metacity-1 openbox-3 wallpapers xfwm4 \
     "${pkgdir}/usr/share/themes/Clearlooks-Phenix"

  install -D -m 0644 -t "${pkgdir}/usr/share/doc/${pkgname}" doc/* *.md
}

# vim:set ts=2 sw=2 et: