summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b0207549cd5bc9ddec6ea3eddbe3b2e6911f51a (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
# Maintainer: Oleg Shparber <trollixx+aur@gmail.com>

_gitname=material-design-icons
pkgbase=material-icons-git
pkgname=("otf-${pkgbase}" "ttf-${pkgbase}")
pkgver=4.0.0.r43.g8825e59fa98
pkgrel=1
pkgdesc="Material design icons is the official icon set from Google."
url='https://github.com/google/material-design-icons'
arch=('any')
license=('Apache')
makedepends=('git')
provides=("otf-material-icons=${pkgver}" "ttf-material-icons=${pkgver}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package_otf-material-icons-git() {
    cd "${_gitname}"
    install -Dm644 font/*.otf -t "$pkgdir"/usr/share/fonts/OTF
}

package_ttf-material-icons-git() {
    cd "${_gitname}"
    install -Dm644 font/*.ttf -t "$pkgdir"/usr/share/fonts/TTF
}