summaryrefslogtreecommitdiff
path: root/system/patool/patool.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-04-28 21:23:04 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-28 21:23:04 +0700
commit2e8ced0745d2c04d8a8b9881b67b9a9d84922e71 (patch)
treeebb9f51462aea8886439971dfc53702561a0354c /system/patool/patool.SlackBuild
parent528d73ceed27451ea8818443d6c3bc7b9d28a517 (diff)
downloadslackbuilds-2e8ced0745d2c04d8a8b9881b67b9a9d84922e71.tar.gz
system/patool: Updated for version 1.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/patool/patool.SlackBuild')
-rw-r--r--system/patool/patool.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/system/patool/patool.SlackBuild b/system/patool/patool.SlackBuild
index 6c589373d8..957aa54fd8 100644
--- a/system/patool/patool.SlackBuild
+++ b/system/patool/patool.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=patool
-VERSION=${VERSION:-1.4}
+VERSION=${VERSION:-1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,20 +69,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# patch to install man page in correct place
+sed -i 's/share\/man/\/usr\/man/' setup.py
+
python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/usr/share/man $PKG/usr
-rm -rf $PKG/usr/share
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-
-cp -a README.md COPYING doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
-
+cp -a COPYING doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install