diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/python2-fonttools/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/python2-fonttools/PKGBUILD')
-rw-r--r-- | community/python2-fonttools/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/python2-fonttools/PKGBUILD b/community/python2-fonttools/PKGBUILD new file mode 100644 index 000000000..424946513 --- /dev/null +++ b/community/python2-fonttools/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 93407 2013-07-03 09:46:05Z aginiewicz $ +# Maintainer: Andrzej Giniewicz <gginiu@gmail.com> +# Contributor: Firmicus <firmicus āt gmx dōt net> + +pkgname=python2-fonttools +pkgver=2.4 +pkgrel=1 +pkgdesc="Converts OpenType and TrueType fonts to and from XML" +url="http://sourceforge.net/projects/fonttools/" +license=("BSD") +arch=('i686' 'x86_64') +depends=("python2-numpy") +makedepends=("python2-distribute") +provides=('fonttools') # temporary compatibility because of rename +replaces=('fonttools') +source=(http://downloads.sourceforge.net/fonttools/fonttools-$pkgver.tar.gz) +md5sums=('41b2d2be48214d2af848e04fded54689') + +build() { + cd "$srcdir"/fonttools-$pkgver + + python2 setup.py build +} + +package() { + cd "$srcdir"/fonttools-$pkgver + + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -D -m755 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + chmod oga+r "$pkgdir"/usr/share/man/man1/ttx.1 + sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find "${pkgdir}" -name '*.py') +} + |