summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvxid2019-09-10 22:12:39 +0200
committervxid2019-09-10 22:12:39 +0200
commit8a9c0738d5883eaba9b4d65a55941db61b8b36c1 (patch)
tree75f3ed0671b1a2bfe8513a67f11207cad32bcf20
downloadaur-8a9c0738d5883eaba9b4d65a55941db61b8b36c1.tar.gz
Initialize PKGBUILD
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD39
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cb8a884c7c1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = gohufont-otb
+ pkgdesc = A monospace bitmap font.
+ pkgver = r8.cc36b8c
+ pkgrel = 1
+ url = https://github.com/hchargois/gohufont
+ arch = any
+ license = custom
+ makedepends = git
+ depends = xorg-font-utils
+ depends = fontconfig
+ conflicts = gohufont
+ source = gohufont-otb::git+https://github.com/hchargois/gohufont.git
+ md5sums = SKIP
+
+pkgname = gohufont-otb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..53070fb584d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Maxime Tréca <maxime.treca@gmail.com>
+pkgname=gohufont-otb
+pkgver=r8.cc36b8c
+pkgrel=1
+pkgdesc="A monospace bitmap font."
+arch=('any')
+url="https://github.com/hchargois/gohufont"
+license=('custom')
+depends=('xorg-font-utils' 'fontconfig')
+makedepends=('git' 'fonttosfnt-git')
+conflicts=('gohufont')
+makedepends=('git')
+source=("$pkgname::git+https://github.com/hchargois/gohufont.git")
+md5sums=('SKIP')
+
+_ex_pt() {
+ _pt=${1%.bdf}
+ _pt=${_pt#*-}
+ echo $_pt
+}
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname}"
+ for f in *.bdf; do
+ fonttosfnt -o "${f/bdf/otb}" "$f"
+ done
+}
+
+package() {
+ cd "$srcdir/${pkgname}"
+ for i in *.otb; do
+ install -Dm 644 $i "$pkgdir/usr/share/fonts/misc/$i"
+ done
+}