system/powerline-fonts: Fix conf files' locations.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Isaac Yu 2023-03-09 12:09:32 -08:00 committed by Willy Sudiarto Raharjo
parent 2e4b0de7b7
commit 745c82538c
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=powerline-fonts
VERSION=${VERSION:-2.8.3}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -59,10 +59,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p "$PKG/usr/share/fontconfig/conf.default" "$PKG/usr/share/fonts/OTF" "$PKG/usr/share/fontconfig/conf.avail"
mkdir -p "$PKG/etc/fonts/conf.d" "$PKG/usr/share/fonts/OTF" "$PKG/etc/fonts/conf.avail"
cp -r "font/PowerlineSymbols.otf" "$PKG/usr/share/fonts/OTF/PowerlineSymbols.otf"
cp -r "font/10-powerline-symbols.conf" "$PKG/usr/share/fontconfig/conf.avail/10-powerline-symbols.conf"
ln -s "../conf.avail/10-powerline-symbols.conf" "$PKG/usr/share/fontconfig/conf.default/10-powerline-symbols.conf"
cp -r "font/10-powerline-symbols.conf" "$PKG/etc/fonts/conf.avail/10-powerline-symbols.conf"
ln -s "../conf.avail/10-powerline-symbols.conf" "$PKG/etc/fonts/conf.d/10-powerline-symbols.conf"
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true