summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af9b40f3d09fd4990e0ff9463ae5711a744537a9 (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
# Maintainer: GreenRaccoon23 <GreenRaccoon a t gmail d o t com>

# NOTE: Please install this package instead of 'archdroid-icon-theme-git'.
#
# Both packages provide the same version, but this one installs faster.
#
# If this package fails to download, try 'archdroid-icon-theme-git' instead.
#
# Please report bugs in the AUR comments or here:
# https://github.com/GreenRaccoon23/archdroid-icon-theme/issues
#
# Please submit suggestions, ideas, or requests through the link above.
# I would appreciate your feedback and am open to requests.

pkgname=archdroid-icon-theme
pkgver=r131.5143e7847
pkgrel=1
pkgdesc="Port of Android 5/6 (Lollipop/Marshmallow)'s material design icons to Arch."
arch=('any')
url="https://github.com/GreenRaccoon23/${pkgname}"
license=('GPL3')
makedepends=('intltool' 'librsvg' 'gtk-update-icon-cache')
provides=("${pkgname}")
conflicts=("${pkgname}" "${pkgname}-git")
options=('!strip')
install="${pkgname}.install"
_commit="5143e7847d61ee4df177616ecae5e4b16bfb9d09"
# To revert to an older version, use an archive from here:
#   https://github.com/GreenRaccoon23/archdroid-icon-theme/raw/master/bak
source=("https://raw.githubusercontent.com/GreenRaccoon23/${pkgname}/${_commit}/${pkgname}.tar.xz")
md5sums=("d64b070d1731eb4c57d4bc260257273e")

prepare() {
  if fc-list | grep Roboto >/dev/null; then
    return 0;
  fi;

  error "Required font 'Roboto' is not installed.";
  error "Please install a font package which includes 'Roboto', such as:";
  for f in ttf-roboto ttf-roboto-font ttf-google-fonts-git ttf-google-fonts-hg otf-google-fonts-hg; do
    echo "${f}";
  done;
  return 1;
};

package() {
  msg2 "Installing ${pkgname}...";
  cd ${pkgname};
  install -dm 755 "${pkgdir}"/usr/share/icons;
  cp -drf --no-preserve='ownership' . "${pkgdir}"/usr/share/icons/;
};