blob: 8260f4396dcad46342082196a21d8b8ce9f887e1 (
plain)
1 # Description: Use any fonts in the terminal without replacing or patching
2 # URL: https://github.com/sebastiencs/icons-in-terminal
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: fontconfig
5
6 name=icons-in-terminal
7 version=20170727
8 release=1
9 _commit=b12286d0d8bf9793a1599a737faa4d64435193f1
10 source=(https://github.com/sebastiencs/icons-in-terminal/archive/$_commit/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$_commit
14 sed -i 's filename="./build/mapping.txt" filename="/usr/share/icons-in-terminal/mapping.txt" ' \
15 print_icons.sh
16 ./scripts/generate_fontconfig.sh > "30-$name.conf"
17 install -dm755 $PKG/usr/share/$name
18 install -Dm644 build/$name.ttf $PKG/usr/share/fonts/TTF/$name.ttf
19 install -Dm755 print_icons.sh $PKG/usr/bin/$name
20
21 find build/ -type f ! \( -name "*.ttf" -o -name "*fish" \) -exec install -m644 {} "$PKG/usr/share/$name/" \;
22
23 install -dm755 $PKG/etc/fonts/conf.{avail,d}
24 install -Dm644 "30-$name.conf" $PKG/etc/fonts/conf.avail
25
26 # enable if you want, nnn shouldn't need it
27 #ln -rs $PKG/etc/fonts/conf.avail/30-$name.conf $PKG/etc/fonts/conf.d/30-$name.conf
28 }
|