# Maintainer(aur): neeshy # Maintainer(aur): Carlos Aznarán # Maintainer(parabola): Wael Karram # Maintainer(aur):Martin C. Doege # Maintainer(aur): Gregory G Danielson III # Contributor(aur): nl6720 # Contributor(aur): David McInnis # Contributor(aur): megadriver # Contributor(aur): Antonio Rojas # Contributor(aur): Ronald van Haren # Contributor(aur): felix pkgname=('pcf-unifont' 'psf-unifont' 'hex-unifont' 'bdf-unifont' 'ttf-unifont' 'otf-unifont' 'unifont-utils') pkgbase=unifont pkgver=14.0.04 pkgrel=1 pkgdesc="A free bitmap font with wide Unicode support (PCF, PSF and hex versions)" arch=('any') url="http://unifoundry.com/" license=('GPL2' 'custom:OFL') source=("http://unifoundry.com/pub/unifont/unifont-$pkgver/unifont-$pkgver.tar.gz"{,.sig}) sha256sums=('1f5e517ccf4cb3a09cffe31ac52de70d8f076fe024a4a2453e07db57bb64febb' 'SKIP') validpgpkeys=('95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy build() { cd "$srcdir/unifont-$pkgver/src" make } package_pcf-unifont() { pkgdesc="A free bitmap font with wide Unicode support (PCF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" install -Dm644 "unifont-$pkgver.pcf.gz" "$pkgdir/usr/share/fonts/misc/unifont.pcf.gz" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_psf-unifont() { pkgdesc="A free bitmap font with wide Unicode support (PSF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" install -Dm644 "Unifont-APL8x16-$pkgver.psf.gz" "$pkgdir/usr/share/kbd/consolefonts/Unifont-APL8x16.psf.gz" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_hex-unifont() { pkgdesc="A free bitmap font with wide Unicode support (hex version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" install -Dm644 "unifont-$pkgver.hex" "$pkgdir/usr/share/unifont/unifont.hex" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_bdf-unifont () { pkgdesc="A free bitmap font with wide Unicode support (BDF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" gzip -d --force "unifont-$pkgver.bdf.gz" install -Dm644 "unifont-$pkgver.bdf" "$pkgdir/usr/share/fonts/misc/unifont.bdf" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_ttf-unifont() { pkgdesc="A free bitmap font with wide Unicode support (TTF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" install -d "$pkgdir/usr/share/fonts/Unifont/" install -m644 "unifont-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont.ttf" install -m644 "unifont_jp-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.ttf" install -m644 "unifont_upper-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.ttf" install -m644 "unifont_csur-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.ttf" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_otf-unifont() { pkgdesc="A free bitmap font with wide Unicode support (OTF version)" # Install the font. cd "$srcdir/unifont-$pkgver/font/precompiled" install -d "$pkgdir/usr/share/fonts/Unifont/" install -m644 "unifont-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont.otf" install -m644 "unifont_jp-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.otf" install -m644 "unifont_upper-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.otf" install -m644 "unifont_csur-$pkgver.otf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.otf" # Install the license. cd "$srcdir/unifont-$pkgver" install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_unifont-utils() { pkgdesc="A free bitmap font with wide Unicode support - utilities" license=('GPL2') arch=('x86_64') depends=('perl') optdepends=( 'perl-wx: for the unifont-viewer utility' 'perl-gd: for the unihex2png and unipng2hex utilities' ) cd "$srcdir/unifont-$pkgver" make -C src install PREFIX="$pkgdir/usr" LOCALBINDIR=../bin make -C man install PREFIX="$pkgdir/usr" COMPRESS=1 }