Browse Source

l/snowballstemmer: Really upgraded to snowballstemmer-2.0.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
ad3d513ac2
  1. 1
      l/snowballstemmer/snowballstemmer-2.0.0.tar.gz.sha256
  2. 16
      l/snowballstemmer/snowballstemmer.SlackBuild

1
l/snowballstemmer/snowballstemmer-2.0.0.tar.gz.sha256

@ -0,0 +1 @@
df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52 snowballstemmer-2.0.0.tar.gz

16
l/snowballstemmer/snowballstemmer.SlackBuild

@ -23,13 +23,13 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest snowballstemmer sourcecode is available at:
# <https://github.com/shibukawa/snowball_py>.
# <https://github.com/snowballstem/snowball>.
# Source package infos
NAMESRC=${NAMESRC:-snowballstemmer}
VERSION=${VERSION:-1.2.1}
VERSION=${VERSION:-2.0.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/20/6b/d2a7cb176d4d664d94a6debf52cd8dbae1f7203c8e42426daa077051d59c/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/21/1b/6b8bbee253195c61aeaa61181bb41d646363bdaa691d0b94b304d4901193/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-snowballstemmer}
@ -61,7 +61,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
@ -69,12 +69,14 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 LICENSE.rst README.rst $PKG/usr/doc/$NAME
install -m 644 CHANGES.rst COPYING README.rst $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save