summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55904da772c25fc70a712c3b746bdfe0d51a099a (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
# Maintainer: Ainola

pkgname=ttf-material-wifi-icons-git
pkgver=r22.d56927c
pkgrel=3
arch=('any')
url='https://github.com/dcousens/material-wifi-icons'
pkgdesc='WiFi icons inspired by Material Icons'
license=('Apache')
provides=('ttf-material-wifi-icons')
conflicts=('ttf-material-wifi-icons')
makedepends=('git')
source=('git+https://github.com/dcousens/material-wifi-icons.git')
sha256sums=('SKIP')

pkgver() {
    cd material-wifi-icons
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    # As upstream named the font with a hyphen in the name, remember to escape
    # the hyphen in your application. For example, with Polybar, use:
    # font-3 = material\-wifi:size=10

    install -Dm644 material-wifi-icons/material-wifi.ttf \
        -t "$pkgdir/usr/share/fonts/TTF/"

    install -Dm644 material-wifi-icons/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
    install -Dm644 material-wifi-icons/README.md -t "$pkgdir/usr/share/doc/$pkgname"
}