aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-fonttools/APKBUILD
blob: 938e114ef60aecaab9aaeec9cf7b619cb2c6130c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             



                                                              

             
                                                              
                                              
                                            
          
                         

                                            
                         
                          

                                                                                                



                                                                  





                                                    
         
                              

 
         
                                             

 
           
                                                               

 





                                                                              
                                                                                                                                                                      
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=py3-fonttools
_pkgname=fonttools
pkgver=4.20.0
pkgrel=0
pkgdesc="Converts OpenType and TrueType fonts to and from XML"
options="!check" # Require unpackaged 'brotli'
url="https://github.com/fonttools/fonttools"
arch="all"
license="MIT AND OFL-1.1"
depends="py3-lxml py3-fs cython python3-dev"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/fonttools/fonttools/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-fonttools" # Backwards compatibility
provides="py-fonttools=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	# remove interpreter line
	sed -i '1d' Lib/fontTools/mtiLib/__init__.py
}

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

doc() {
	replaces="py-$_pkgname-doc" # Backwards compatibility
	provides="py-$_pkgname-doc=$pkgver-r$pkgrel" # Backwards compatibility
	default_doc
}

sha512sums="dbb7ec7660bd3a2e12acd1826740e4e0ddf90c1955f61a0b99e7b6439ca1b5e9fd222fda86f471f91482094c6aeaa1ced0d7dfc62a2bd693138b177e827edc13  fonttools-4.20.0.tar.gz"