summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa2eb2dea979bdd7653d9206f49741f25af92932 (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
# Maintainer: twa022 <twa022 at gmail dot com>
# Maintainer: erik dubois <erik.dubois@gmail.com>
pkgname=sardi-ghost-flexible-mint-y-icons-git
_pkgname=sardi-ghost-flexible-mint-y-icons
pkgver=367.60234a76
pkgrel=3
pkgdesc="New icons from LinuxMint 18 inspired by the Moka icon set with Sardi-Ghost-Flexible as main icon set"
arch=('any')
url="https://github.com/linuxmint/mint-y-icons"
license=('GPL3')
depends=('sardi-icons')
makedepends=()
optdepends=()
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${_pkgname}"::git+https://github.com/linuxmint/mint-y-icons.git)
sha256sums=('SKIP')
pkgver() {
  cd "${srcdir}/${_pkgname}"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}
package() {
  cd ${srcdir}/${_pkgname}/usr/share/icons
  rm -rf Mint-Y
  rm -rf Mint-Y-Dark
  rm -rf Mint-Y-Dark-Aqua 
  rm -rf Mint-Y-Dark-Blue 
  rm -rf Mint-Y-Dark-Brown 
  rm -rf Mint-Y-Dark-Grey 
  rm -rf Mint-Y-Dark-Orange 
  rm -rf Mint-Y-Dark-Pink 
  rm -rf Mint-Y-Dark-Purple 
  rm -rf Mint-Y-Dark-Red 
  rm -rf Mint-Y-Dark-Sand 
  rm -rf Mint-Y-Dark-Teal
  find .  -name "index.theme" -type f -exec sed -i "s/Name=Mint-Y-/Name=Sardi-Ghost-Flexible-Mint-Y-/g" {} \;
  find .  -name "index.theme" -type f -exec sed -i "s/Inherits=Mint-Y,Adwaita,gnome,hicolor/Inherits=Sardi-Ghost-Flexible,Sardi,Surfn,Adwaita,gnome,hicolor/g" {} \;
  mv Mint-Y-Aqua Sardi-Ghost-Flexible-Mint-Y-Aqua
  mv Mint-Y-Blue Sardi-Ghost-Flexible-Mint-Y-Blue
  mv Mint-Y-Brown Sardi-Ghost-Flexible-Mint-Y-Brown
  mv Mint-Y-Grey Sardi-Ghost-Flexible-Mint-Y-Grey
  mv Mint-Y-Orange Sardi-Ghost-Flexible-Mint-Y-Orange
  mv Mint-Y-Pink Sardi-Ghost-Flexible-Mint-Y-Pink
  mv Mint-Y-Purple Sardi-Ghost-Flexible-Mint-Y-Purple
  mv Mint-Y-Red Sardi-Ghost-Flexible-Mint-Y-Red
  mv Mint-Y-Sand Sardi-Ghost-Flexible-Mint-Y-Sand
  mv Mint-Y-Teal Sardi-Ghost-Flexible-Mint-Y-Teal
  cd ${srcdir}/${_pkgname}
  cp -aR ./usr ${pkgdir}
}