|
|
|
@ -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
|
|
|
|
|