Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Maintainer: William Turner <willtur.will@gmail.com>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=afdko
pkgver=3.0.2a5
pkgrel=1
pkgdesc='Adobe Font Development Kit for OpenType'
arch=('x86_64')
url="https://github.com/adobe-type-tools/$pkgname"
license=('custom')
_py_deps=(
'lxml'
'booleanoperations'
'cu2qu'
'defcon'
'fontmath'
'fonttools'
'mutatormath'
'ufonormalizer'
'ufoprocessor'
)
depends=('python' "${_py_deps[@]/#/python-}" 'psautohint')
depends_x86_64=('lib32-glibc')
source=("https://github.com/adobe-type-tools/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('a2816c77ff466c1dd3e771d480ae66318e5241d72559eff599661cc2ef6e1b9b')
prepare() {
cd "$pkgname-$pkgver"
sed 's/==/>=/g' -i requirements.txt
}
build() {
cd "$pkgname-$pkgver"
python setup.py build
}
package() {
cd "$pkgname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment