Browse Source

l/python-babel: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
3c1bd1555c
  1. 1
      l/python-babel/babel-1.3.tar.gz.sha1
  2. 1
      l/python-babel/babel-1.3.tar.gz.sha256
  3. 19
      l/python-babel/python-babel.SlackBuild

1
l/python-babel/babel-1.3.tar.gz.sha1

@ -1 +0,0 @@
cf2bca2d65c2e2dc83a3e928cae94c89905678d9 babel-1.3.tar.gz

1
l/python-babel/babel-1.3.tar.gz.sha256

@ -0,0 +1 @@
2adf6b213775784fa94c4ebcd4b6fdbbc0ff5e8484a5b1b32ff6b103f93911c5 babel-1.3.tar.gz

19
l/python-babel/python-babel.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2016 Damien Goutte-Gattat
# Copyright (C) 2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -62,7 +62,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -70,9 +70,13 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py import_cldr
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py import_cldr
python2 setup.py install --root=$PKG
mv $PKG/usr/bin/pybabel $PKG/usr/bin/pybabel-2.7
python3 setup.py build
python3 setup.py import_cldr
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
@ -81,6 +85,11 @@ install -m 644 AUTHORS CHANGES LICENSE README $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
pytz
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save