# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-sony-misc
pkgver=1.0.4
pkgrel=1
pkgdesc="X.org Sony fonts"
url="https://xorg.freedesktop.org/"
arch="noarch"
license="HPND-sell-variant"
options="!check"  # Cannot test a font.
depends="encodings font-alias mkfontscale fontconfig"
makedepends="font-util-dev bdftopcf"
source="https://www.x.org/releases/individual/font/font-sony-misc-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-fontdir=/usr/share/fonts/misc
	make
}

package() {
	make DESTDIR="$pkgdir" \
		MKFONTDIR=: \
		MKFONTSCALE=: \
		FCCACHE=: \
		install
}

sha512sums="
f361fca66db2ec80b1467fb6bff57bd2cfc6722473bd7ad119026a97552eef07ff77552c01eb8f98f3299d7fd40c8c2cb3e0d0b01adca2f81c2c2f75581dc113  font-sony-misc-1.0.4.tar.xz
"
