Browse Source

l/psycopg2: Upgraded to psycopg2-2.8.4.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
183645773b
  1. 1
      l/psycopg2/psycopg2-2.6.2.tar.gz.sha1
  2. 1
      l/psycopg2/psycopg2-2.8.4.tar.gz.sha256
  3. 18
      l/psycopg2/psycopg2.SlackBuild

1
l/psycopg2/psycopg2-2.6.2.tar.gz.sha1

@ -1 +0,0 @@
9964686caa8759b9eedfbc4f73e1e2665f6b6d7e psycopg2-2.6.2.tar.gz

1
l/psycopg2/psycopg2-2.8.4.tar.gz.sha256

@ -0,0 +1 @@
f898e5cc0a662a9e12bde6f931263a1bbd350cfb18e1d5336a12927851825bb6 psycopg2-2.8.4.tar.gz

18
l/psycopg2/psycopg2.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009-2013,2016 Damien Goutte-Gattat
# Copyright (C) 2009-2013,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -28,9 +28,8 @@
# Source package infos
NAMESRC=${NAMESRC:-psycopg2}
VERSION=${VERSION:-2.6.2}
VERSION=${VERSION:-2.8.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-6/$ARCHIVE}
# Built package infos
NAMEPKG=${NAMEPKG:-psycopg2}
@ -71,10 +70,9 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -84,8 +82,12 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \

Loading…
Cancel
Save