wok-current view python-mysql/receipt @ rev 16024

spk: add to cross arch's
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 06 23:00:20 2014 +0100 (2014-03-06)
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 }