summaryrefslogtreecommitdiff
path: root/network/offlineimap/offlineimap.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2011-10-08 08:23:18 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:29 -0500
commit81198616f642fa8dc74c4fe0982e47963cab5425 (patch)
treeb0a7daed1c3c3b302f48ef1c500844abe2c2fe5f /network/offlineimap/offlineimap.SlackBuild
parentd884f9fa57768e991a06bc0a58868bb98b0ad69b (diff)
downloadslackbuilds-81198616f642fa8dc74c4fe0982e47963cab5425.tar.gz
network/offlineimap: Updated for version 6.3.4.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
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