summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b68c3cf1ba5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+_upname=ftCLI
+pkgname=ftcli-git
+pkgver=0.1.1.r3.g4fc0b3a
+pkgrel=1
+pkgdesc='A command line font editor'
+arch=(any)
+url="https://github.com/$_upname/$_upname"
+license=('MIT')
+_py_deps=('colorama'
+ 'click'
+ 'brotli'
+ 'fonttools>=4.21.1'
+ 'skia-pathops'
+ 'zopfli')
+depends=('python'
+ "${_py_deps[@]/#/python-}")
+makedepends=('git' 'python-setuptools')
+provides=("${pkgname%-git}")
+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
+}
+
+package() {
+ cd "$pkgname"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+