summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c408c181de937365c67f24a63bd5e661f7e5095 (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
# Maintainer: Niklas20114552 <niklas.deppermann@outlook.com>
pkgname="otf-material-design-icons"
pkgver=4.0.0
pkgrel=1
pkgdesc="Font with every Material Icons"
arch=(any)
license=("Apache 2.0")
url="https://github.com/google/material-design-icons"
source=()
sha256sums=()
depends=()
makedepends=('wget')

package() {
	MYTMPDIR=$(mktemp -d -p ~)
	wget --output-document="$MYTMPDIR/MaterialIconsOutlined-Regular.otf" "https://github.com/google/material-design-icons/raw/master/font/MaterialIconsOutlined-Regular.otf"
	wget --output-document="$MYTMPDIR/MaterialIconsSharp-Regular.otf" "https://github.com/google/material-design-icons/raw/master/font/MaterialIconsSharp-Regular.otf"
	wget --output-document="$MYTMPDIR/MaterialIconsRound-Regular.otf" "https://github.com/google/material-design-icons/raw/master/font/MaterialIconsRound-Regular.otf"
	wget --output-document="$MYTMPDIR/MaterialIconsTwoTone-Regular.otf" "https://github.com/google/material-design-icons/raw/master/font/MaterialIconsTwoTone-Regular.otf"
	wget --output-document="$MYTMPDIR/MaterialIcons-Regular.ttf" "https://github.com/google/material-design-icons/raw/master/font/MaterialIcons-Regular.ttf"

	install -Dm644 "$MYTMPDIR/MaterialIconsOutlined-Regular.otf" ${pkgdir}/usr/share/fonts/MaterialIconsOutlined-Regular.otf
	install -Dm644 "$MYTMPDIR/MaterialIconsSharp-Regular.otf" ${pkgdir}/usr/share/fonts/MaterialIconsSharp-Regular.otf
	install -Dm644 "$MYTMPDIR/MaterialIconsRound-Regular.otf" ${pkgdir}/usr/share/fonts/MaterialIconsRound-Regular.otf
	install -Dm644 "$MYTMPDIR/MaterialIconsTwoTone-Regular.otf" ${pkgdir}/usr/share/fonts/MaterialIconsTwoTone-Regular.otf
	install -Dm644 "$MYTMPDIR/MaterialIcons-Regular.ttf" ${pkgdir}/usr/share/fonts/MaterialIcons-Regular.ttf

	rm -rf "$MYTMPDIR"
}