summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD47
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d782cd2656b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-fontmake-git
+ pkgdesc = Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)
+ pkgver = 2.3.0.r0.g8705253
+ pkgrel = 1
+ url = https://github.com/googlefonts/fontmake
+ arch = x86_64
+ license = MIT
+ checkdepends = python-pytest
+ makedepends = python-setuptools-scm
+ provides = python-fontmake=2.3.0.r0.g8705253
+ conflicts = python-fontmake
+ source = python-fontmake-git::git+https://github.com/googlefonts/fontmake.git
+ sha256sums = SKIP
+
+pkgname = python-fontmake-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b9818c2234e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=python-fontmake-git
+pkgver=2.3.0.r0.g8705253
+pkgrel=1
+pkgdesc='Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)'
+url="https://github.com/googlefonts/fontmake"
+license=('MIT')
+arch=('x86_64')
+checkdepends=('python-pytest')
+_py_depends=('cu2qu'
+ 'defcon'
+ 'fonttools>=4.18.1'
+ 'fontmath'
+ 'glyphslib'
+ 'mutatormath'
+ 'ufolib2'
+ 'ufo2ft>=2.19.1')
+depends+=("${_py_deps[@]/#/python-}")
+makedepends=('python-setuptools-scm')
+provides=("${pkgname%-git}=$pkgver")
+conflicts=("${pkgname%-git}")
+source=("$pkgname::git+$url.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags --abbrev=7 HEAD |
+ sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname"
+ PYTHONPATH=Lib pytest tests
+}
+
+package() {
+ cd "$pkgname"
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+ install -D -m755 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+