wok view python-mysql/receipt @ rev 18724
lynis 2.1.1 + receipt change: download at new place, but website link works still
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Fri Dec 18 13:06:39 2015 +0000 (2015-12-18) |
parents | 16df76e1fc6a |
children | 9e01bc6321ea |
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="python-dev setuptools mysql-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
21 python setup.py build
22 python setup.py install --root=$DESTDIR
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 cp -a $install/usr/lib $fs/usr
30 }
32 # Remove old package.
33 post_install()
34 {
35 [ ! -d $1/var/lib/tazpkg/installed/mysql-python ] ||
36 rm -rf $1/var/lib/tazpkg/installed/mysql-python
37 }