wok-6.x view python-mysql/receipt @ rev 16755
Up slitaz-boot-scripts (5.6.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 16 11:29:33 2014 +0200 (2014-06-16) |
parents | 537c950566ea |
children | 14154392a2a1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-mysql"
4 SOURCE="MySQL-python"
5 VERSION="1.2.3"
6 CATEGORY="development"
7 SHORT_DESC="A Python interface to MySQL ."
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="GPL"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://mysql-python.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/mysql-python/$TARBALL"
14 DEPENDS="python libmysqlclient zlib openssl"
15 BUILD_DEPENDS="setuptools mysql-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
22 python setup.py build
23 python setup.py install --root=$DESTDIR
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $install/usr/lib $fs/usr
31 }
33 # Remove old package.
34 post_install()
35 {
36 if [ -d $1/var/lib/tazpkg/installed/mysql-python ]; then
37 rm -rf $1/var/lib/tazpkg/installed/mysql-python
38 fi
39 }