upgpkg: sbcl 2.2.9-1
[arch-packages.git] / xorg-fonts-misc / repos / extra-any / PKGBUILD
bloba5c94853dff4652b2d2d3a9cf35b3b29fa2b3908
1 #Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=xorg-fonts-misc
4 pkgver=1.0.3
5 pkgrel=10
6 pkgdesc="X.org misc fonts"
7 arch=(any)
8 url="https://xorg.freedesktop.org/"
9 license=('custom')
10 depends=('xorg-fonts-alias-misc')
11 makedepends=('xorg-util-macros' 'xorg-mkfontscale' 'xorg-bdftopcf' 'xorg-font-util')
12 provides=('font-misc-ethiopic' 'font-misc-meltho')
13 source=(${url}/releases/individual/font/font-arabic-misc-${pkgver}.tar.bz2
14         ${url}/releases/individual/font/font-cursor-misc-${pkgver}.tar.bz2
15         ${url}/releases/individual/font/font-daewoo-misc-${pkgver}.tar.bz2
16         ${url}/releases/individual/font/font-dec-misc-${pkgver}.tar.bz2
17         ${url}/releases/individual/font/font-isas-misc-${pkgver}.tar.bz2
18         ${url}/releases/individual/font/font-jis-misc-${pkgver}.tar.bz2
19         ${url}/releases/individual/font/font-micro-misc-${pkgver}.tar.bz2
20         ${url}/releases/individual/font/font-misc-ethiopic-1.0.4.tar.bz2
21         ${url}/releases/individual/font/font-misc-meltho-${pkgver}.tar.bz2
22         ${url}/releases/individual/font/font-misc-misc-1.1.2.tar.bz2
23         ${url}/releases/individual/font/font-mutt-misc-${pkgver}.tar.bz2
24         ${url}/releases/individual/font/font-schumacher-misc-1.1.2.tar.bz2
25         ${url}/releases/individual/font/font-sony-misc-${pkgver}.tar.bz2
26         ${url}/releases/individual/font/font-sun-misc-${pkgver}.tar.bz2)
27 sha256sums=('505d9b12a7093389e67a925dfda6346bde26d114c67f0cdca7aeda6e5d3344f4'
28             '17363eb35eece2e08144da5f060c70103b59d0972b4f4d77fd84c9a7a2dba635'
29             'bc65de70bee12698caa95b523d3b652c056347e17b68cc8b5d6bbdff235c4be8'
30             'e19ddf8b5f8de914d81675358fdfe37762e9ce524887cc983adef34f2850ff7b'
31             '5824ab4b485951107dd245b8f7717d2822f1a6dbf6cea98f1ac7f49905c0a867'
32             '2b18ce10b367ebafe95a17de799b6db9a24e2337188d124adaf68af05b1fac65'
33             '9a3381c10f32d9511f0ad4179df395914c50779103c16cddf7017f5220ed8db6'
34             '698c0f6ddf9ca482250bdafa08293893148393bb9cb23e0a9ca313c6dbfc4ae0'
35             '3721323f13855cf7ca609115a1f7b182491e9b2b9c6e01eb1a2c7f8edd480791'
36             'b8e77940e4e1769dc47ef1805918d8c9be37c708735832a07204258bacc11794'
37             'bd5f7adb34367c197773a9801df5bce7b019664941900b2a31fbfe1ff2830f8f'
38             'e444028656e0767e2eddc6d9aca462b16a2be75a47244dbc199b2c44eca87e5a'
39             '2043a326ba347c9da5ca1e9bc363e2521c3ea40b43b1f9662d333efd4867cff5'
40             '481f4fcbbf7005658b080b3cf342c8c76de752e77f47958b2b383de73266d2e0')
42 build() {
43   cd "${srcdir}"
44   for dir in *; do
45     if [ -d "${dir}" ]; then
46       pushd "${dir}"
47       ./configure --prefix=/usr \
48           --with-fontdir=/usr/share/fonts/misc
49       make
50       popd
51     fi
52   done
55 package() {
56   cd "${srcdir}"
57   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
58   for dir in *; do
59     if [ -d "${dir}" ]; then
60       pushd "${dir}"
61       make DESTDIR="${pkgdir}" install
62       install -m644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.${dir%-*}
63       popd
64     fi
65   done
66   rm -f "${pkgdir}"/usr/share/fonts/*/fonts.*
67   
68   # move .otf files to proper directory - FS#44250
69   mv "${pkgdir}"/usr/share/fonts/misc/*.otf "${pkgdir}"/usr/share/fonts/OTF/