wok-current view python-mysql/receipt @ rev 25624
Patch gst-ffmpeg to work with new gcc
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Sep 04 19:03:50 2023 +0000 (11 months ago) |
parents | 080c1dff8494 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-mysql"
4 VERSION="1.2.5"
5 CATEGORY="development"
6 SHORT_DESC="A Python interface to MySQL."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://pypi.org/project/MySQL-python/"
10 REPOLOGY="python:mysql-python"
12 SOURCE="MySQL-python"
13 TARBALL="$SOURCE-$VERSION.zip"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="libmysqlclient openssl python zlib"
17 BUILD_DEPENDS="mysql-dev python-dev python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/mysql-python/files/mysql-python/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/mysql-python/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
31 python setup.py build &&
32 python setup.py install --root=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders lib
39 }
41 # Remove old package.
42 post_install()
43 {
44 [ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] ||
45 rm -rf "$1/var/lib/tazpkg/installed/mysql-python"
46 }