diff options
author | nobody <nobody@nowhere> | 2010-05-13 00:25:15 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:25:15 +0200 |
commit | e296adf8af86306f8295643d8de8741ac0b51fdc (patch) | |
tree | fd36b40a87572b7b0f36480d2ea17d1a54116b00 /development/psycopg2/psycopg2.SlackBuild | |
parent | 3371fc94ef1d21f91aeb7ab44a45e1cc0de70c57 (diff) | |
download | slackbuilds-e296adf8af86306f8295643d8de8741ac0b51fdc.tar.gz |
development/psycopg2: Updated for version 2.0.13
Diffstat (limited to 'development/psycopg2/psycopg2.SlackBuild')
-rw-r--r-- | development/psycopg2/psycopg2.SlackBuild | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/development/psycopg2/psycopg2.SlackBuild b/development/psycopg2/psycopg2.SlackBuild index 5b79ee1e54..23cf5651e9 100644 --- a/development/psycopg2/psycopg2.SlackBuild +++ b/development/psycopg2/psycopg2.SlackBuild @@ -22,44 +22,37 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Exit on most errors -set -e +# Modified by SlackBuilds.org PRGNAM=psycopg2 -VERSION=2.0.5.1 +VERSION=2.0.13 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" -fi +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -CFLAGS="$SLKCFLAGS" \ -python setup.py bdist - -tar zxvf dist/$PRGNAM-$VERSION.linux-i686.tar.gz -C $PKG +python setup.py install --root=$PKG -strip --strip-unneeded \ - $PKG/usr/lib/python2.5/site-packages/psycopg2/_psycopg.so +find $PKG | xargs file | grep "shared object" | grep ELF | \ + cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog INSTALL LICENSE MANIFEST README doc/* \ +cp -a AUTHORS ChangeLog INSTALL LICENSE PKG-INFO README doc/* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -67,4 +60,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |