summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54e9ccc15b47830a349c8bd207fd9553f156c733 (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
# Maintainer: grimi <grimi at poczta dot fm>

pkgname=numix-themes-green
pkgver=2.6.7
pkgrel=2
pkgdesc="A flat and light theme with a modern look using Green color (GNOME, MATE, Openbox, Unity, XFCE)"
arch=('any')
url='http://numixproject.org/'
license=('GPL3')
depends=('gtk-engine-murrine')
makedepends=('ruby-bundler' 'inkscape')
source=("${pkgname%-*}-${pkgver}.tar.gz::https://github.com/numixproject/numix-gtk-theme/archive/${pkgver}.tar.gz" "gtk2rc.patch")
sha256sums=('2b997ad3eee0b802d0dd49dd772127fd3c337cca32d8863efd4897928e38879a'
            'f3d1de132ccb999fa8c7c1e1d545cfdb790d77e58a21097f24303bdc79c71ea3')


prepare() {
   local color="#697740" name="Green"
   cd numix-gtk-theme-${pkgver}
   patch -Np0 -i ../gtk2rc.patch
   cd src
   for file in gtk-2.0/gtkrc \
      gtk-3.0/scss/_global.scss \
      assets/*.svg \
      gtk-3.20/scss/_global.scss \
      metacity-1/metacity-theme-2.xml \
      metacity-1/metacity-theme-3.xml \
      openbox-3/themerc \
      xfce-notify-4.0/gtkrc \
      xfwm4/themerc \
      xfwm4/*.xpm \
      unity/*.svg \
      index.theme \
      ../Makefile
   do
      sed -i "s/#f1544d/$color/Ig"     "${file}"
      sed -i "s/#f0544c/$color/Ig"     "${file}"
      sed -i "s/#f06860/$color/Ig"     "${file}"
      #sed -i "s/#444444/#333333/g"     "${file}"
      #sed -i "s/#444/#333/g"           "${file}"
      sed -i "s/Numix/Numix-$name/I" "${file}"
   done

   rm assets/*.png
   ../scripts/render-assets.sh

   echo -e "source 'https://rubygems.org'\ngem 'sass'" > ../Gemfile
}


build() {
   cd numix-gtk-theme-${pkgver}
   bundle install --path .
   make SASS="bundle exec sass"
}


package() {
   cd numix-gtk-theme-${pkgver}
   make SASS="bundle exec sass" DESTDIR="${pkgdir}" install
}