wok-6.x view python-mysql/receipt @ rev 24575

updated fsarchiver (0.8.5 -> 0.8.6)
author Hans-G?nter Theisgen
date Sun Feb 27 10:36:21 2022 +0100 (2022-02-27)
parents 814362194a8d
children d7ed974f0f39
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 python-setuptools mysql-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/mysql-python/files/mysql-python/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/mysql-python/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
29 python setup.py build
30 python setup.py install --root=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 }
40 # Remove old package.
41 post_install()
42 {
43 [ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] ||
44 rm -rf "$1/var/lib/tazpkg/installed/mysql-python"
45 }