[arch-commits] Commit in python2-fonttools/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Sep 4 08:21:33 UTC 2014
Date: Thursday, September 4, 2014 @ 10:21:32
Author: aginiewicz
Revision: 118239
upgpkg: python2-fonttools 2.4-3
python2-fonttools: fix mtime
Modified:
python2-fonttools/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-04 08:17:01 UTC (rev 118238)
+++ PKGBUILD 2014-09-04 08:21:32 UTC (rev 118239)
@@ -4,7 +4,7 @@
pkgname=python2-fonttools
pkgver=2.4
-pkgrel=2
+pkgrel=3
pkgdesc="Converts OpenType and TrueType fonts to and from XML"
url="http://sourceforge.net/projects/fonttools/"
license=("BSD")
@@ -11,11 +11,18 @@
arch=('i686' 'x86_64')
depends=("python2-numpy")
makedepends=("python2-setuptools")
-provides=('fonttools') # temporary compatibility because of rename
-replaces=('fonttools')
source=(http://downloads.sourceforge.net/fonttools/fonttools-$pkgver.tar.gz)
md5sums=('41b2d2be48214d2af848e04fded54689')
+prepare() {
+ cd "$srcdir"/fonttools-$pkgver
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
build() {
cd "$srcdir"/fonttools-$pkgver
@@ -29,7 +36,5 @@
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')
}
More information about the arch-commits
mailing list