Natanael Copa 5393a9ac78 testing/python26-{setuptools,buildutils}: misc build fix
* avoid fork in global scope
* added python-dev to makedepends
* quote $pkgdir and $srcdir in case someone have spaces in the path
2009-11-16 10:47:18 +00:00

24 lines
795 B
Plaintext

# Contributor: Andrew Manison <amanison@anselsystems.com>
# Maintainer:
pkgname=python26-buildutils
_pkgname=${pkgname#python26-}
pkgver=0.3
pkgrel=0
pkgdesc="buildutils is a collection of enhancements to the Python distutils"
url="http://pypi.python.org/pypi/buildutils/0.3"
license="GPL"
depends="python python26-setuptools"
makedepends="python-dev"
install=
subpackages=""
source="http://pypi.python.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz"
build() {
cd "$srcdir"/$_pkgname-$pkgver
mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
python setup.py install --root="$pkgdir"
echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth
}
md5sums="fec620dee05f591edad386366b52e17b buildutils-0.3.tar.gz"