summaryrefslogtreecommitdiff
path: root/network/offlineimap/offlineimap.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/offlineimap/offlineimap.SlackBuild')
-rw-r--r--network/offlineimap/offlineimap.SlackBuild31
1 files changed, 23 insertions, 8 deletions
diff --git a/network/offlineimap/offlineimap.SlackBuild b/network/offlineimap/offlineimap.SlackBuild
index dc49239ddc..e018b31e64 100644
--- a/network/offlineimap/offlineimap.SlackBuild
+++ b/network/offlineimap/offlineimap.SlackBuild
@@ -24,9 +24,9 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-SRCNAM="nicolas33-offlineimap-v6.3.3-0-g3b09695"
+SRCNAM="nicolas33-offlineimap-v6.3.4-0-g61e50b3"
PRGNAM="offlineimap"
-VERSION=${VERSION:-6.3.3}
+VERSION=${VERSION:-6.3.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,7 +49,7 @@ rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$SRCNAM.tar.gz
-mv nicolas33-offlineimap-cf325d5 $PRGNAM-$VERSION
+mv nicolas33-offlineimap-94450e9 $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root.root .
@@ -59,18 +59,33 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-mkdir -p $PKG/usr/{man/man1,doc/$PRGNAM-$VERSION} $PKG/etc
+### fix the manual file to build correctly
+patch -p0 < $CWD/patches/manual.rst.patch
+
+### Patch makefile to disable building dev docs
+patch -p0 < $CWD/patches/doc_generation_fix.patch
+
+### build and install
python setup.py install --root=$PKG
-make doc man
+### make and install docs
+make doc
+mkdir -p $PKG/usr/{man/man1,doc/$PRGNAM-$VERSION/html} $PKG/etc
+
+### install config file
install -m 0644 -D $PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
-install -m 0644 $PRGNAM.1 $PKG/usr/man/man1
+### make and install man page and html docs
+( cd docs; make man && make html )
+
+install -m 0644 docs/$PRGNAM.1 $PKG/usr/man/man1
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
cp -a \
- COPYING COPYRIGHT readme.html $PRGNAM.conf* docs/*.html \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ COPYING COPYRIGHT $PRGNAM.conf* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a readme.html docs/FAQ.html docs/INSTALL.html docs/MANUAL.html \
+ docs/UPGRADE.html $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install