opt/mysql-python/Pkgfile

20 lines
672 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: MySQL interface for Python
# URL: http://sourceforge.net/projects/mysql-python/
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# Depends on: python, mysql
name=mysql-python
2010-06-17 17:10:26 +02:00
version=1.2.3
release=2
source=(http://downloads.sourceforge.net/project/$name/$name/$version/MySQL-python-$version.tar.gz
http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
2010-06-17 17:10:26 +02:00
$name-setup.diff)
2006-02-23 16:26:10 +01:00
build () {
cd MySQL-python-$version
2010-06-17 17:10:26 +02:00
patch -p1 -i $SRC/$name-setup.diff
cp $SRC/setuptools-0.6c11-py2.7.egg .
2006-02-23 16:26:10 +01:00
python setup.py install --root=$PKG --prefix=/usr
rm -r $PKG/usr/lib/python2.7/site-packages/*.egg-info
2006-02-23 16:26:10 +01:00
}