added new package: python-distutils-extra, version 2.22

This commit is contained in:
Giuseppe 2010-11-26 12:29:42 +00:00
parent 0dc73152ab
commit 9d54fb886f

View File

@ -0,0 +1,30 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=python-distutils-extra
pkgver=2.22
pkgrel=1
pkgdesc='Enhancements to the Python build system'
arch=('any')
license=('GPL')
url='http://packages.qa.debian.org/p/python-distutils-extra.html'
depends=('intltool' 'python')
makedepends=('python-distribute')
source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz)
md5sums=('c085b71263c37af48824f8a353475181')
build() {
cd "${srcdir}/$pkgname-$pkgver"
# python2 fix
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' setup.py test/auto.py
sed -i 's_\(subprocess.call.*\)python_\1python2_' DistUtilsExtra/command/build_kdeui.py
python2 setup.py install --root="${pkgdir}"
}