summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO31
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD66
3 files changed, 74 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a43f49d72b1..232753d9692 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,35 @@
-# Generated by mksrcinfo v8
-# Tue Dec 15 23:10:04 UTC 2015
pkgbase = trufont-git
- pkgver = r321.2ae3efc
+ pkgdesc = A streamlined and hackable font editor
+ pkgver = 0.6.3.r18.ge8d731e
pkgrel = 1
url = https://github.com/trufont/trufont
arch = any
license = GPL3
- license = LGPL2.1
+ license = LGPL3
makedepends = git
- depends = python-defcon-git
- depends = python-robofab-git
+ makedepends = python-setuptools
+ depends = python
+ depends = python-appdirs
+ depends = python-booleanoperations
+ depends = python-brotli
+ depends = python-compreffor
+ depends = python-cu2qu
+ depends = python-defcon
+ depends = python-fonttools
+ depends = python-fs
+ depends = python-hsluv
+ depends = python-lxml
+ depends = python-pyclipper
+ depends = python-pyqt5
+ depends = python-pyqt5-sip
+ depends = python-pytz
+ depends = python-six
+ depends = python-ufo-extractor
+ depends = python-ufo2ft
+ depends = python-unicodedata2
+ depends = python-zopfli
source = git+https://github.com/trufont/trufont.git
sha256sums = SKIP
pkgname = trufont-git
- depends = python-setuptools
diff --git a/.gitignore b/.gitignore
index 432f619462a..0ca50ff4dd9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
-/pkg
-/src
-*.tar.xz
+*
+!./.SRCINFO
+!./.gitignore
+!./PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index 54ea4210043..50b88f76aed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,54 @@
-# Maintainer: Anselmo L. S. Melo <anselmo.melo@intel.com>
-pkgbasename='trufont'
-pkgname=($pkgbasename'-git')
-pkgver=r321.2ae3efc
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+# Contributor: Anselmo L. S. Melo <anselmo.melo@intel.com>
+
+pkgname=trufont-git
+pkgver=0.6.3.r18.ge8d731e
pkgrel=1
-pkgdesc=""
+pkgdesc='A streamlined and hackable font editor'
arch=('any')
-url="https://github.com/trufont/trufont"
-license=('GPL3' 'LGPL2.1')
-makedepends=('git')
-depends=('python-defcon-git' 'python-robofab-git')
-source=("git+https://github.com/trufont/trufont.git")
+url="https://github.com/${pkgname%-git}/${pkgname%-git}"
+license=('GPL3' 'LGPL3')
+_pydeps=('appdirs'
+ 'booleanoperations'
+ 'brotli'
+ 'compreffor'
+ 'cu2qu'
+ 'defcon'
+ 'fonttools'
+ 'fs'
+ 'hsluv'
+ 'lxml'
+ 'pyclipper'
+ 'pyqt5'
+ 'pyqt5-sip'
+ 'pytz'
+ 'six'
+ 'ufo-extractor'
+ 'ufo2ft'
+ 'unicodedata2'
+ 'zopfli')
+depends=('python' "${_pydeps[@]/#/python-}")
+makedepends=('git' 'python-setuptools')
+source=("git+$url.git")
sha256sums=('SKIP')
-package() {
- depends=('python-setuptools')
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --tags --abbrev=7 --match="[0-9]*" HEAD |
+ sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
- cd "$srcdir/$pkgbasename"
- python3 setup.py install --root="$pkgdir/" --optimize=1
+build() {
+ cd "${pkgname%-git}"
+ python setup.py build
}
-pkgver() {
- cd "$srcdir/$pkgbasename"
- ( set -o pipefail
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
+check() {
+ cd "${pkgname%-git}"
+ # python setup.py test
+}
+
+package() {
+ cd "${pkgname%-git}"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}