wok-current annotate psycopg2/receipt @ rev 24550

updated firejail (0.9.62 -> 0.9.68)
author Hans-G?nter Theisgen
date Fri Feb 25 09:28:16 2022 +0100 (2022-02-25)
parents 6104bce47bab
children 65784e875d45
rev   line source
pascal@1230 1 # SliTaz package receipt.
pascal@1230 2
pascal@1230 3 PACKAGE="psycopg2"
Hans-G?nter@23450 4 VERSION="2.8.4"
pascal@1230 5 CATEGORY="development"
pascal@1230 6 SHORT_DESC="PostgreSQL database adapter for the Python."
pascal@1230 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15376 8 LICENSE="LGPL3"
Hans-G?nter@21719 9 WEB_SITE="http://initd.org/psycopg/"
Hans-G?nter@21719 10
Hans-G?nter@21719 11 Version=${VERSION%.*}
Hans-G?nter@21719 12 Version=${Version/./-}
pascal@1230 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21719 14 WGET_URL="${WEB_SITE}tarballs/PSYCOPG-$Version/$TARBALL"
pascal@15376 15
Hans-G?nter@21719 16 DEPENDS="egenix-mx-base libpostgresqlclient python"
Hans-G?nter@21719 17 BUILD_DEPENDS="postgresql-dev python-dev python-setuptools"
pascal@1230 18
pascal@24459 19 # What is the latest version available today?
pascal@24459 20 current_version()
pascal@24459 21 {
pascal@24459 22 wget -O - https://pypi.org/project/psycopg2/ 2>/dev/null | \
pascal@24459 23 sed '/psycopg2 [0-9]/!d;s|.*psycopg2 ||'
pascal@24459 24 }
pascal@24459 25
pascal@1230 26 # Rules to configure and make the package.
pascal@1230 27 compile_rules()
pascal@1230 28 {
slaxemulator@11404 29 sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
Hans-G?nter@23450 30
pascal@1475 31 python setup.py build &&
slaxemulator@11404 32 python setup.py install --root=$DESTDIR
pascal@1230 33 }
pascal@1230 34
pascal@1230 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1230 36 genpkg_rules()
pascal@1230 37 {
pascal@15376 38 cp -a $install/usr $fs
pascal@1230 39 }