summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Buzzanca2016-11-07 11:28:10 +0100
committerMarco Buzzanca2016-11-07 11:28:10 +0100
commit04145118f8fd281fa1def91a6176b0db4eedb119 (patch)
tree2fc917aaa66f8a1477b9e5f7d7c8fb22cb81dd2f
downloadaur-04145118f8fd281fa1def91a6176b0db4eedb119.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
-rw-r--r--ibm-fonts.install14
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5db81eb8fbb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ibm-fonts
+ pkgdesc = IBM system and text mode bitmap fonts
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://farsil.github.io/ibmfonts/
+ install = ibm-fonts.install
+ arch = any
+ license = MIT, custom:CC BY-SA 4.0
+ depends = fontconfig
+ depends = xorg-font-utils
+ depends = xorg-fonts-encodings
+ source = https://github.com/farsil/ibmfonts/archive/0.1.tar.gz
+ source = ibm-fonts.install
+ sha256sums = 86f6d295561947f7e0a42e6e2bd405f63625095353468c6a6e752c0cba727dc9
+ sha256sums = 9c4ea0f53c980ea9cd51f22c6da014c4e63ec4e111e5403237061527db054880
+
+pkgname = ibm-fonts
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3265ca87a3c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Marco Buzzanca <marco dot bzn at gmail dot com>
+pkgname=ibm-fonts
+pkgver=0.1
+pkgrel=1
+pkgdesc='IBM system and text mode bitmap fonts'
+arch=('any')
+url='https://farsil.github.io/ibmfonts/'
+license=('MIT, custom:CC BY-SA 4.0')
+depends=('fontconfig' 'xorg-font-utils' 'xorg-fonts-encodings')
+install=$pkgname.install
+source=("https://github.com/farsil/ibmfonts/archive/$pkgver.tar.gz"
+ "$pkgname.install")
+sha256sums=('86f6d295561947f7e0a42e6e2bd405f63625095353468c6a6e752c0cba727dc9'
+ '9c4ea0f53c980ea9cd51f22c6da014c4e63ec4e111e5403237061527db054880')
+
+build() {
+ cd "$srcdir/ibmfonts-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/ibmfonts-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 licenses/MIT "$pkgdir/usr/share/licenses/$pkgname/licenses/MIT"
+ install -Dm644 licenses/CC-BY-SA-4.0 "$pkgdir/usr/share/licenses/$pkgname/licenses/CC-BY-SA-4.0"
+}
diff --git a/ibm-fonts.install b/ibm-fonts.install
new file mode 100644
index 00000000000..42b974c4c01
--- /dev/null
+++ b/ibm-fonts.install
@@ -0,0 +1,14 @@
+post_install() {
+ fc-cache -s
+ mkfontscale /usr/share/fonts/misc
+ mkfontdir /usr/share/fonts/misc
+ xset fp rehash
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}