|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2011,2012,2013 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2011,2012,2013,2016 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -26,9 +26,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-Pygments} |
|
|
|
|
VERSION=${VERSION:-1.6} |
|
|
|
|
VERSION=${VERSION:-2.1.3} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-http://pypi.python.org/packages/source/P/Pygments/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/b8/67/ab177979be1c81bc99c8d0592ef22d547e70bb4c6815c383286ed5dec504/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-pygments} |
|
|
|
@ -71,14 +71,13 @@ python setup.py build
|
|
|
|
|
python setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
|
# Install man page |
|
|
|
|
install -D -m 644 docs/pygmentize.1 $PKG/usr/man/man1/pygmentize.1 |
|
|
|
|
install -D -m 644 doc/pygmentize.1 $PKG/usr/man/man1/pygmentize.1 |
|
|
|
|
gzip -9 $PKG/usr/man/man1/pygmentize.1 |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 AUTHORS CHANGES LICENSE PKG-INFO TODO \ |
|
|
|
|
install -m 644 AUTHORS CHANGES LICENSE PKG-INFO TODO README.rst \ |
|
|
|
|
$PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
cp -R docs/build $PKG/usr/doc/$NAMEPKG-$VERSION/html |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|