Subject: [PATCH] community/mplayer: use fontconfig instead of the broken font symlink

From: Carlo Dé <[email-masked]>
Date: Sun, 5 Sep 2021 11:35:10 +0200

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/12955
---
 community/mplayer/APKBUILD | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/community/mplayer/APKBUILD b/community/mplayer/APKBUILD
index 2be8fd5713..f14552cc1a 100644
--- a/community/mplayer/APKBUILD
+++ b/community/mplayer/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=mplayer
 pkgver=1.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A movie player for linux"
 url="http://www.mplayerhq.hu/design7/news.html"
 arch="x86_64 aarch64"
@@ -9,7 +9,7 @@ license="GPL-2.0-or-later"
 subpackages="$pkgname-doc"
 makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev
 	libtheora-dev xvidcore-dev zlib-dev sdl-dev freetype-dev
-	x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev live-media-dev
+	x264-dev faac-dev fontconfig-dev libxvmc-dev alsa-lib-dev live-media-dev
 	mesa-dev yasm libpng-dev libvdpau-dev libvpx-dev libcdio-paranoia-dev"
 
 source="http://www.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver%.*}.tar.xz
@@ -62,10 +62,6 @@ package() {
 	make -j1 DESTDIR="$pkgdir" install
 	install -Dm644 etc/codecs.conf etc/input.conf etc/example.conf \
 		"$pkgdir"/etc/mplayer/
-	install -dm755 "$pkgdir"/usr/share/mplayer/
-	ln -s /usr/share/fonts/TTF/DejaVuSans.ttf \
-		"$pkgdir"/usr/share/mplayer/subfont.ttf
-	rm -rf "$pkgdir"/usr/share/mplayer/font
 }
 sha512sums="8ef71cad187d8c8f81c837279bd3a421b440c892d3347a667670b21c954007e35cf0d15828f0901f347b9c1b053e8da4bc7f0fb6de34382d1e463074923d7b34  MPlayer-1.4.tar.xz
 bba012c5a116cbc6715955a0a563c89a33a1d8ad3c44301a083ce65296ba9112a88a58e38c874d9347f9c3133054e62bd16d3b3367383f207ee40ddae105081c  x11-libs.patch
-- 
2.32.0