wok view psycopg2/receipt @ rev 24946
updated nagios and nagios-dev (4.4.6 -> 4.4.7)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 22 17:20:04 2022 +0100 (2022-04-22) |
parents | 6104bce47bab |
children | 65784e875d45 |
line source
1 # SliTaz package receipt.
3 PACKAGE="psycopg2"
4 VERSION="2.8.4"
5 CATEGORY="development"
6 SHORT_DESC="PostgreSQL database adapter for the Python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL3"
9 WEB_SITE="http://initd.org/psycopg/"
11 Version=${VERSION%.*}
12 Version=${Version/./-}
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}tarballs/PSYCOPG-$Version/$TARBALL"
16 DEPENDS="egenix-mx-base libpostgresqlclient python"
17 BUILD_DEPENDS="postgresql-dev python-dev python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://pypi.org/project/psycopg2/ 2>/dev/null | \
23 sed '/psycopg2 [0-9]/!d;s|.*psycopg2 ||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/,PSYCOPG_DEBUG$//' setup.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 cp -a $install/usr $fs
39 }