summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b55880566688573f258a7e5dd69e1cff1b614287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: David Scholl <djscholl at gmail dot com>
pkgname=sgi-fonts
pkgver=1.0.1
pkgrel=8
pkgdesc="Bitmapped X11 screen fonts from Silicon Graphics, Inc."
arch=('any')
url="http://oss.sgi.com/projects/sgi_propack/"
license=('MIT')
depends=('fontconfig' 'xorg-font-utils' 'xorg-fonts-encodings')
makedepends=('imake')
install=sgi-fonts.install
source=(http://ftp.gwdg.de/pub/opensuse/source/distribution/leap/42.3/repo/oss/suse/src/sgi-bitmap-fonts-1.0-949.1.src.rpm sgi-fonts.patch)
md5sums=('eb7b45c4217e141987c4eba370f54a82' 'a7f1df8c2d785c859ae60eb1c5742407')

build() {
  cd $srcdir
  tar xf sgi-fonts.tar.bz2
  patch -p0 < sgi-fonts.patch
  cd $pkgname
  xmkmf
  sed '/^          FONTDIR = /s/${datarootdir}\/fonts\/X11/\/usr\/share\/fonts/' -i Makefile
  sed '/^      FONTROOTDIR = /s/${datarootdir}\/fonts\/X11/\/usr\/share\/fonts/' -i Makefile
  make
}
package() {
  cd $srcdir/$pkgname
  make DESTDIR=$pkgdir install
  cd $pkgdir/usr/share/fonts/misc
  mv sgi/*.pcf.gz ./
  rm -Rf sgi
}