summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-09-12 01:40:37 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-09-12 01:56:38 -0400
commit72c1eb214d94bfed8a3f6a4ba70b137e7fcfd2d4 (patch)
treea2613d902bc2a137b2ea32b0bc74639560b4f3f1
parent0cdbb4757f9031607902ebf11706b027ff1b9284 (diff)
[unifont]: add package
-rw-r--r--pcr/unifont/PKGBUILD159
1 files changed, 159 insertions, 0 deletions
diff --git a/pcr/unifont/PKGBUILD b/pcr/unifont/PKGBUILD
new file mode 100644
index 000000000..243fb9cb0
--- /dev/null
+++ b/pcr/unifont/PKGBUILD
@@ -0,0 +1,159 @@
+# Maintainer: Wael Karram <wael@waelk.tech>
+# Maintainer (aur): neeshy <neeshy@tfwno.gf>
+# Contributor: Carlos Aznarán <caznaranl@uni.pe>
+# Contributor: Martin C. Doege <mdoege at compuserve dot com>
+# Contributor: Gregory G Danielson III <gregdan3@protonmail.com>
+# Contributor: nl6720 <nl6720@archlinux.org>
+# Contributor: David McInnis <dave@dave3.xyz>
+# Contributor: megadriver <megadriver at gmx dot com>
+# Contributor: Antonio Rojas <arojas@archlinux.org>
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Contributor: felix <`base64 -d <<< ZmVsaXgudm9uLnNAcG9zdGVvLmRlCg`>
+
+
+# parabola changes and rationale:
+# - install documentation
+# - combination of several AUR packages
+
+# NOTE: This package should be built per-arch.
+# The fonts are for 'any' arch; but 'unifont-utils' has binary executables.
+# NOTE: In order to publish all of these packages, `librestage` must be run twice.
+# The first run will stage the 'any' packages.
+# In order to librestage the per-arch 'unifont-utils' packages,
+# uncomment the commented arch=() array temporarily.
+
+
+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')
+# arch=('armv7h' 'i686' 'x86_64')
+url="http://unifoundry.com/"
+license=('GPL' 'custom:OFL')
+# source=("http://unifoundry.com/pub/unifont/unifont-$pkgver/unifont-$pkgver.tar.gz"{,.sig})
+source=("http://unifoundry.com/pub/unifont/unifont-$pkgver/unifont-$pkgver.tar.gz")
+sha256sums=('1f5e517ccf4cb3a09cffe31ac52de70d8f076fe024a4a2453e07db57bb64febb'
+# 'SKIP')
+ )
+validpgpkeys=('95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy <unifoundry@unifoundry.com>
+
+build() {
+ cd "${srcdir}"/${pkgbase}-${pkgver}
+ 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"
+ # Install the documentation.
+ install -Dm644 doc/unifont.pdf "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 doc/unifont.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"
+ # Install the documentation.
+ install -Dm644 doc/unifont.pdf "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 doc/unifont.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"
+ # Install the documentation.
+ install -Dm644 doc/unifont.pdf "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 doc/unifont.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"
+ # Install the documentation.
+ install -Dm644 doc/unifont.pdf "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 doc/unifont.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"
+ # Install the documentation.
+ install -Dm644 doc/unifont.pdf "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 doc/unifont.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"
+ # Install the documentation.
+ install -Dm644 doc/unifont.pdf "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 doc/unifont.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_unifont-utils() {
+ pkgdesc="A free bitmap font with wide Unicode support - utilities"
+ arch=('armv7h' 'i686' 'x86_64')
+ license=('GPL')
+ 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
+}